Chromium Code Reviews
Description[Telemetry] Improvements to OS X powermetrics integration
* Make StartMonitoringPowerAsync() synchronous in terms of starting the powermetrics process by waiting for output file to be created before returning.
* Handle parse errors in powermetrics output - empirically while I was able to quite easily get powermetrics into a state where it exited in the middle of writing a sample, I was completely unable to get it not write out at least one sample completely.
* Modify unit test to start/stop powermetrics faster than it's refresh rate to try to trigger malformed output - test fails without rest of this patch, passes with this patch.
BUG=338808
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=247871
Patch Set 1 #
Total comments: 3
Patch Set 2 : Fix offline review comments #Patch Set 3 : Remove unused variable #Patch Set 4 : whitespace fixes #Patch Set 5 : rebase #
Messages
Total messages: 12 (0 generated)
|
||||||||||||||||||||||||||||