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

Issue 501813002: [Telemetry] Fix idle wakeup reporting in the face of dead processes (Closed)

Created:
6 years, 4 months ago by jeremy
Modified:
6 years, 3 months ago
Reviewers:
nednguyen, tonyg
CC:
chromium-reviews, telemetry+watch_chromium.org, sullivan
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[Telemetry] Fix idle wakeup reporting in the face of dead processes Telemetry does not account for process death when computing deltas of various process statistics over a browser run. CPU stats are currently stored in a dictionary of POD types aggregated by process type which gives no room for separating dead processes over a run. Ultimately the goal is to report CPU stats in the timeline on a per-process basis. Towards this goal and to fix counting of dead processes, this CL adds an IdleStatsData object which inherits from TimelineData. IdleStatsData keeps track of idle wake ups by PID and is able to omit processes which have died during a run from the final reported result. BUG=343373 Committed: https://crrev.com/edde24b3815fdbc888c675fb24cb21a25186c989 Cr-Commit-Position: refs/heads/master@{#292422}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Fix review comments #

Total comments: 4

Patch Set 3 : Fix review comments #

Total comments: 2

Patch Set 4 : Fix cpu_stats comment. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -4 lines) Patch
M tools/perf/metrics/power.py View 1 2 chunks +5 lines, -1 line 0 comments Download
M tools/telemetry/telemetry/core/platform/mac_platform_backend.py View 1 2 3 2 chunks +5 lines, -3 lines 0 comments Download
A tools/telemetry/telemetry/core/platform/process_statistic_timeline_data.py View 1 1 chunk +58 lines, -0 lines 1 comment Download
A tools/telemetry/telemetry/core/platform/process_statistic_timeline_data_unittest.py View 1 2 1 chunk +47 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
jeremy
6 years, 4 months ago (2014-08-24 14:26:35 UTC) #1
tonyg
This looks like a really positive incremental step towards better timeline integration. My highest level ...
6 years, 4 months ago (2014-08-24 16:53:44 UTC) #2
jeremy
On Sun, Aug 24, 2014 at 7:53 PM, <tonyg@chromium.org> wrote: > https://codereview.chromium.org/501813002/diff/1/tools/ > perf/metrics/power.py > ...
6 years, 4 months ago (2014-08-25 08:41:00 UTC) #3
nednguyen
https://codereview.chromium.org/501813002/diff/1/tools/telemetry/telemetry/core/platform/timeline_objects.py File tools/telemetry/telemetry/core/platform/timeline_objects.py (right): https://codereview.chromium.org/501813002/diff/1/tools/telemetry/telemetry/core/platform/timeline_objects.py#newcode10 tools/telemetry/telemetry/core/platform/timeline_objects.py:10: class IdleStatsData(timeline_data.TimelineData): I think this patch is using timeline_data ...
6 years, 4 months ago (2014-08-25 15:42:01 UTC) #4
jeremy
Ready for another look. I've looked at other stats and it appears this pattern will ...
6 years, 3 months ago (2014-08-26 14:14:16 UTC) #5
nednguyen
Would you mind filing a bug to move these platform stats to model and tracing ...
6 years, 3 months ago (2014-08-26 14:56:46 UTC) #6
jeremy
Fixed, ready for another look. https://codereview.chromium.org/501813002/diff/20001/tools/telemetry/telemetry/core/platform/process_statistic_timeline_data.py File tools/telemetry/telemetry/core/platform/process_statistic_timeline_data.py (right): https://codereview.chromium.org/501813002/diff/20001/tools/telemetry/telemetry/core/platform/process_statistic_timeline_data.py#newcode46 tools/telemetry/telemetry/core/platform/process_statistic_timeline_data.py:46: IMHO - No, for ...
6 years, 3 months ago (2014-08-28 12:56:53 UTC) #7
nednguyen
https://codereview.chromium.org/501813002/diff/40001/tools/telemetry/telemetry/core/platform/mac_platform_backend.py File tools/telemetry/telemetry/core/platform/mac_platform_backend.py (right): https://codereview.chromium.org/501813002/diff/40001/tools/telemetry/telemetry/core/platform/mac_platform_backend.py#newcode57 tools/telemetry/telemetry/core/platform/mac_platform_backend.py:57: """Return current cpu processing time of pid in seconds.""" ...
6 years, 3 months ago (2014-08-28 13:26:13 UTC) #8
jeremy
Review latency between us is about 24 hours for a full cycle, if there's nothing ...
6 years, 3 months ago (2014-08-28 13:58:14 UTC) #9
nednguyen
lgtm
6 years, 3 months ago (2014-08-28 15:17:32 UTC) #10
nednguyen
https://codereview.chromium.org/501813002/diff/60001/tools/telemetry/telemetry/core/platform/process_statistic_timeline_data.py File tools/telemetry/telemetry/core/platform/process_statistic_timeline_data.py (right): https://codereview.chromium.org/501813002/diff/60001/tools/telemetry/telemetry/core/platform/process_statistic_timeline_data.py#newcode30 tools/telemetry/telemetry/core/platform/process_statistic_timeline_data.py:30: k in my_dict.keys()}) Shouldn't it be an error if ...
6 years, 3 months ago (2014-08-28 15:29:00 UTC) #11
jeremy
The CQ bit was checked by jeremy@chromium.org
6 years, 3 months ago (2014-08-28 16:28:56 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jeremy@chromium.org/501813002/60001
6 years, 3 months ago (2014-08-28 16:30:24 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001) as b19a80f5096dc3974ef9bfc5bdf3b1fe6a3b55cd
6 years, 3 months ago (2014-08-28 18:37:55 UTC) #14
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:00:52 UTC) #15
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/edde24b3815fdbc888c675fb24cb21a25186c989
Cr-Commit-Position: refs/heads/master@{#292422}

Powered by Google App Engine
This is Rietveld 408576698