Commit Graph

15 Commits

Author SHA1 Message Date
Chris Peterson
696e4b3f5d Bug 1236393 - Annotate intentional switch fallthrough to suppress -Wimplicit-fallthrough warning in tools/power/rapl.cpp. r=njn
tools/power/rapl.cpp:331:7 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
2015-11-23 22:41:07 -08:00
Chris Peterson
ba0b7175d3 Bug 1222887 - Suppress -Wunreachable-code warning in tools/power. r=njn
tools/power/rapl.cpp:844:5 [-Wunreachable-code] code will never be executed

clang reports a -Wunreachable-code warning for sigemptyset() because Darwin's sigemptyset() is a macro that always returns 0. Thus `if (sigemptyset(&sa.sa_mask) < 0)` is always false and `Abort("sigemptyset() failed")` is never called. Linux's sigemptyset() can return 0 or -1. The extra parens around (0) suppress the clang warning.
2015-11-09 01:03:54 -08:00
Nicholas Nethercote
8625b8ee31 Bug 1214924 - Add "WindowServer" and "kernel" processes to |mach power|'s output. r=BenWa. 2015-10-16 14:01:22 +11:00
Nicholas Nethercote
9d3af62290 Bug 1204787 - Add |mach power|. r=glandium.
This extracts the most useful browser-related measurements from rapl and
powermetrics.
2015-09-15 16:23:45 +10:00
Nicholas Nethercote
2cbfe95103 Bug 1203811 - Clarify two error messages in tools/power/rapl. r=heycam. 2015-09-10 23:12:31 -07:00
Nicholas Nethercote
9d86749340 Bug 1203834 - Fix's rapl's handling of unsupported power domains. r=glandium.
The "gpu" and "ram" domains aren't supported by all platforms. rapl has a
special constant |kUnsupported_j| to represent this on Linux, but I
accidentally have a minus sign in front of it in several places, which means
that instead of printing "n/a" for unsupported planes we always print "1.0".

I think this happened because I used to hardwire -1 in there and then I later
changed it to a constant but forgot to remove the minus signs.

It sure would be nice to have automated testing for this stuff, but I don't see
how to do it.
2015-09-10 23:12:20 -07:00
Nicholas Nethercote
40f990efe4 Bug 1201811 (part 2) - Don't print distribution stats if there was only 1 sample. r=erahm. 2015-09-04 01:45:13 -07:00
Nicholas Nethercote
03f39cb4d5 Bug 1201811 (part 1) - Don't use integer arithmetic when summing totals in rapl. r=erahm. 2015-09-04 01:04:46 -07:00
Nicholas Nethercote
69d088e45f Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.
2015-08-27 20:44:53 -07:00
Nicholas Nethercote
385ef91694 Bug 1198334 (part 0) - Tighten up warnings-as-errors usage in tools/power/. r=glandium. 2015-08-27 20:40:44 -07:00
Nicholas Nethercote
b8656cc2a8 Bug 1198137 (follow-up) - Add a missing #include to unbreak Mac OS builds on a CLOSED TREE. r=me 2015-08-26 11:48:08 +10:00
Nicholas Nethercote
47d134b803 Bug 1198137 - Add some summary stats to tool/power/rapl's output. r=erahm.
"mean" is most useful, then "min" and "max". The rest are moderately useful.
2015-08-25 18:11:03 -07:00
Nicholas Nethercote
6e21839f90 Bug 1197694 - fflush() rapl output so it always appears immediately. r=erahm. 2015-08-24 15:59:37 -07:00
Nicholas Nethercote
f479b7c67f Bug 1194560 (follow-up) - Only build rapl on Linux if the arch is x86 or x86-64. r=glandium. 2015-08-20 17:02:18 -07:00
Nicholas Nethercote
07b8f950fc Bug 1194560 - Add tools/power/rapl, a RAPL-reading program for power profiling. r=erahm,glandium. 2015-08-19 22:25:30 -07:00