Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Issue 145353012: [Telemetry] Improvements to OS X powermetrics integration (Closed)

Created:
6 years, 10 months ago by jeremy
Modified:
6 years, 10 months ago
Reviewers:
tonyg
CC:
chromium-reviews, chrome-speed-team+watch_google.com, telemetry+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -9 lines) Patch
M tools/telemetry/telemetry/core/platform/mac_platform_backend.py View 1 2 3 4 7 chunks +51 lines, -8 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/platform_backend_unittest.py View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
jeremy
6 years, 10 months ago (2014-01-28 22:59:01 UTC) #1
tonyg
https://codereview.chromium.org/145353012/diff/1/tools/telemetry/telemetry/core/platform/mac_platform_backend.py File tools/telemetry/telemetry/core/platform/mac_platform_backend.py (right): https://codereview.chromium.org/145353012/diff/1/tools/telemetry/telemetry/core/platform/mac_platform_backend.py#newcode53 tools/telemetry/telemetry/core/platform/mac_platform_backend.py:53: # powermetrics writes lots of output to stderr, don't ...
6 years, 10 months ago (2014-01-29 00:47:41 UTC) #2
jeremy
https://codereview.chromium.org/145353012/diff/1/tools/telemetry/telemetry/core/platform/mac_platform_backend.py File tools/telemetry/telemetry/core/platform/mac_platform_backend.py (right): https://codereview.chromium.org/145353012/diff/1/tools/telemetry/telemetry/core/platform/mac_platform_backend.py#newcode53 tools/telemetry/telemetry/core/platform/mac_platform_backend.py:53: # powermetrics writes lots of output to stderr, don't ...
6 years, 10 months ago (2014-01-29 01:26:54 UTC) #3
tonyg
https://codereview.chromium.org/145353012/diff/1/tools/telemetry/telemetry/core/platform/mac_platform_backend.py File tools/telemetry/telemetry/core/platform/mac_platform_backend.py (right): https://codereview.chromium.org/145353012/diff/1/tools/telemetry/telemetry/core/platform/mac_platform_backend.py#newcode62 tools/telemetry/telemetry/core/platform/mac_platform_backend.py:62: # Block until output file is written to ensure ...
6 years, 10 months ago (2014-01-29 06:07:00 UTC) #4
jeremy
Ready for another look.
6 years, 10 months ago (2014-01-29 20:39:49 UTC) #5
tonyg
lgtm
6 years, 10 months ago (2014-01-29 21:11:05 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jeremy@chromium.org/145353012/60001
6 years, 10 months ago (2014-01-29 21:37:49 UTC) #7
commit-bot: I haz the power
Failed to apply patch for tools/telemetry/telemetry/core/platform/mac_platform_backend.py: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 10 months ago (2014-01-29 21:37:52 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jeremy@chromium.org/145353012/80001
6 years, 10 months ago (2014-01-29 22:14:02 UTC) #9
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) content_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=253855
6 years, 10 months ago (2014-01-30 00:02:15 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jeremy@chromium.org/145353012/80001
6 years, 10 months ago (2014-01-30 00:22:49 UTC) #11
commit-bot: I haz the power
6 years, 10 months ago (2014-01-30 07:28:29 UTC) #12
Message was sent while issue was closed.
Change committed as 247871

Powered by Google App Engine
This is Rietveld 408576698