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

Issue 23717016: Add cpu_stats for the browser (Closed)

Created:
7 years, 3 months ago by edmundyan
Modified:
7 years, 3 months ago
Reviewers:
nduca, tonyg
CC:
chromium-reviews, chrome-speed-team+watch_google.com, telemetry+watch_chromium.org
Visibility:
Public.

Description

Add cpu_stats for the browser Implementing linux_backend for now. BUG=263959 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221897

Patch Set 1 #

Patch Set 2 : . #

Total comments: 2

Patch Set 3 : Using /proc to get current CPU counters #

Total comments: 4

Patch Set 4 : Get jiffies from timer_list #

Patch Set 5 : Finalize jiffies. Remove unittests #

Total comments: 2

Patch Set 6 : Only store the timestamp once instead of summing it #

Total comments: 2

Patch Set 7 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -0 lines) Patch
M tools/telemetry/telemetry/core/browser.py View 1 2 3 4 5 6 1 chunk +29 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/linux_platform_backend.py View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/platform_backend.py View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/proc_util.py View 1 2 3 4 5 2 chunks +31 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
edmundyan
How's this? One issue is that the browser process is not affected by the javascript ...
7 years, 3 months ago (2013-09-03 17:12:32 UTC) #1
nduca
+tonyg
7 years, 3 months ago (2013-09-03 22:51:58 UTC) #2
nduca
looks solid, lgtm on my part. seems like the test cases are gonna fail on ...
7 years, 3 months ago (2013-09-03 22:53:15 UTC) #3
edmundyan
On 2013/09/03 22:53:15, nduca wrote: > looks solid, lgtm on my part. seems like the ...
7 years, 3 months ago (2013-09-04 00:23:08 UTC) #4
tonyg
https://codereview.chromium.org/23717016/diff/16001/tools/telemetry/telemetry/core/platform/linux_platform_backend.py File tools/telemetry/telemetry/core/platform/linux_platform_backend.py (right): https://codereview.chromium.org/23717016/diff/16001/tools/telemetry/telemetry/core/platform/linux_platform_backend.py#newcode35 tools/telemetry/telemetry/core/platform/linux_platform_backend.py:35: cpu_load = p.get_cpu_percent(1) I don't think this is what ...
7 years, 3 months ago (2013-09-05 00:11:41 UTC) #5
edmundyan
Would making cpu_load a metric make more sense then? It seems to follow better with ...
7 years, 3 months ago (2013-09-05 01:05:44 UTC) #6
nduca
tonyg, i'm not sure i agree with you on the api thing. I'm pretty sure ...
7 years, 3 months ago (2013-09-05 01:24:26 UTC) #7
tonyg
On 2013/09/05 01:24:26, nduca wrote: > tonyg, i'm not sure i agree with you on ...
7 years, 3 months ago (2013-09-05 04:37:30 UTC) #8
tonyg
On 2013/09/05 01:05:44, edmundyan wrote: > Would making cpu_load a metric make more sense then? ...
7 years, 3 months ago (2013-09-05 04:43:40 UTC) #9
edmundyan
On 2013/09/05 04:43:40, tonyg wrote: > On 2013/09/05 01:05:44, edmundyan wrote: > > Would making ...
7 years, 3 months ago (2013-09-05 04:59:45 UTC) #10
tonyg
This is great, exactly what I had in mind. A couple of last nits and ...
7 years, 3 months ago (2013-09-05 15:20:13 UTC) #11
edmundyan
https://codereview.chromium.org/23717016/diff/30001/tools/telemetry/telemetry/core/platform/proc_util.py File tools/telemetry/telemetry/core/platform/proc_util.py (right): https://codereview.chromium.org/23717016/diff/30001/tools/telemetry/telemetry/core/platform/proc_util.py#newcode42 tools/telemetry/telemetry/core/platform/proc_util.py:42: hertz = float(os.sysconf(os.sysconf_names['SC_CLK_TCK'])) or 100 On 2013/09/05 15:20:14, tonyg ...
7 years, 3 months ago (2013-09-05 18:11:18 UTC) #12
edmundyan
On 2013/09/05 18:11:18, edmundyan wrote: > https://codereview.chromium.org/23717016/diff/30001/tools/telemetry/telemetry/core/platform/proc_util.py > File tools/telemetry/telemetry/core/platform/proc_util.py (right): > > https://codereview.chromium.org/23717016/diff/30001/tools/telemetry/telemetry/core/platform/proc_util.py#newcode42 > ...
7 years, 3 months ago (2013-09-06 01:54:01 UTC) #13
tonyg
If only jiffies works on android, then let's go with that everywhere. After that change, ...
7 years, 3 months ago (2013-09-06 02:24:24 UTC) #14
edmundyan
On 2013/09/06 02:24:24, tonyg wrote: > If only jiffies works on android, then let's go ...
7 years, 3 months ago (2013-09-06 17:39:16 UTC) #15
tonyg
lgtm https://codereview.chromium.org/23717016/diff/58001/tools/telemetry/telemetry/core/platform/proc_util.py File tools/telemetry/telemetry/core/platform/proc_util.py (right): https://codereview.chromium.org/23717016/diff/58001/tools/telemetry/telemetry/core/platform/proc_util.py#newcode34 tools/telemetry/telemetry/core/platform/proc_util.py:34: return 0 Should this raise?
7 years, 3 months ago (2013-09-06 17:42:15 UTC) #16
nduca
lgtm
7 years, 3 months ago (2013-09-06 18:00:24 UTC) #17
edmundyan
Sorry, actually found a bug. If we grab cpu_stats when the # of Renderer processes ...
7 years, 3 months ago (2013-09-06 21:24:50 UTC) #18
tonyg
https://codereview.chromium.org/23717016/diff/65001/tools/telemetry/telemetry/core/browser.py File tools/telemetry/telemetry/core/browser.py (right): https://codereview.chromium.org/23717016/diff/65001/tools/telemetry/telemetry/core/browser.py#newcode189 tools/telemetry/telemetry/core/browser.py:189: for process_type in ['Browser', 'Renderer']: Why restrict to Browser/Renderer?
7 years, 3 months ago (2013-09-06 21:35:48 UTC) #19
edmundyan
https://codereview.chromium.org/23717016/diff/65001/tools/telemetry/telemetry/core/browser.py File tools/telemetry/telemetry/core/browser.py (right): https://codereview.chromium.org/23717016/diff/65001/tools/telemetry/telemetry/core/browser.py#newcode189 tools/telemetry/telemetry/core/browser.py:189: for process_type in ['Browser', 'Renderer']: On 2013/09/06 21:35:48, tonyg ...
7 years, 3 months ago (2013-09-06 22:21:36 UTC) #20
tonyg
lgtm
7 years, 3 months ago (2013-09-06 22:24:40 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/edmundyan@chromium.org/23717016/74001
7 years, 3 months ago (2013-09-06 22:28:19 UTC) #22
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
7 years, 3 months ago (2013-09-07 04:20:32 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/edmundyan@chromium.org/23717016/74001
7 years, 3 months ago (2013-09-07 04:42:08 UTC) #24
commit-bot: I haz the power
7 years, 3 months ago (2013-09-07 04:59:23 UTC) #25
Message was sent while issue was closed.
Change committed as 221897

Powered by Google App Engine
This is Rietveld 408576698