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

Issue 2749383003: WorkerThread CPU Load UMA (Closed)

Created:
3 years, 9 months ago by kinuko
Modified:
3 years, 8 months ago
CC:
chromium-reviews, blink-reviews, kinuko+watch, scheduler-bugs_chromium.org, Sami
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

WorkerThread CPU Load UMA I feel we might want to separate out these UMAs per worker-types and for background/foreground cases, but starting with the simplest one. BUG=692906 Review-Url: https://codereview.chromium.org/2749383003 Cr-Commit-Position: refs/heads/master@{#462006} Committed: https://chromium.googlesource.com/chromium/src/+/d81b3970f7e6120f5b145af37d330db86b458dba

Patch Set 1 #

Patch Set 2 : . #

Total comments: 14

Patch Set 3 : updated intervals #

Patch Set 4 : histogram comments #

Total comments: 2

Patch Set 5 : addressed comment #

Patch Set 6 : build fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -8 lines) Patch
M third_party/WebKit/Source/platform/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/Source/platform/scheduler/base/time_converter.h View 1 1 chunk +24 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.h View 1 2 3 4 5 4 chunks +12 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.cc View 1 2 3 4 5 5 chunks +44 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.cc View 1 2 5 2 chunks +1 line, -6 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (20 generated)
kinuko
A bit rough but sending this to get early feedback. Could you? altimin, (and/or sami): ...
3 years, 9 months ago (2017-03-22 09:41:10 UTC) #10
Sami
lgtm, I think this is a good first step to get some data here. https://codereview.chromium.org/2749383003/diff/60001/third_party/WebKit/Source/platform/scheduler/base/time_converter.h ...
3 years, 9 months ago (2017-03-22 18:56:44 UTC) #14
altimin
lgtm % reporting interval selection https://codereview.chromium.org/2749383003/diff/60001/third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.cc File third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.cc (right): https://codereview.chromium.org/2749383003/diff/60001/third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.cc#newcode24 third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.cc:24: base::TimeDelta::FromSeconds(30); I wonder if ...
3 years, 9 months ago (2017-03-22 22:25:24 UTC) #15
nhiroki
lgtm https://codereview.chromium.org/2749383003/diff/60001/third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.h File third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.h (right): https://codereview.chromium.org/2749383003/diff/60001/third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.h#newcode23 third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.h:23: TaskTimeObserver { No public/protected/private. Is this intended? https://codereview.chromium.org/2749383003/diff/60001/third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.h#newcode64 ...
3 years, 9 months ago (2017-03-23 05:20:05 UTC) #16
kinuko
Thanks! (inline response only) https://codereview.chromium.org/2749383003/diff/60001/third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.cc File third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.cc (right): https://codereview.chromium.org/2749383003/diff/60001/third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.cc#newcode24 third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.cc:24: base::TimeDelta::FromSeconds(30); On 2017/03/22 22:25:24, altimin ...
3 years, 9 months ago (2017-03-23 05:42:32 UTC) #17
falken
https://codereview.chromium.org/2749383003/diff/60001/third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.cc File third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.cc (right): https://codereview.chromium.org/2749383003/diff/60001/third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.cc#newcode24 third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.cc:24: base::TimeDelta::FromSeconds(30); On 2017/03/23 05:42:32, kinuko wrote: > On 2017/03/22 ...
3 years, 9 months ago (2017-03-23 06:48:05 UTC) #18
kinuko
Thanks. We had offline discussion and concluded that: 1) hold off landing this, but add ...
3 years, 9 months ago (2017-03-23 07:00:20 UTC) #19
Sami
https://codereview.chromium.org/2749383003/diff/60001/third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.h File third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.h (right): https://codereview.chromium.org/2749383003/diff/60001/third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.h#newcode64 third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.h:64: ThreadLoadTracker load_tracker_; On 2017/03/23 05:20:04, nhiroki wrote: > Hm... ...
3 years, 9 months ago (2017-03-24 10:48:10 UTC) #20
kinuko
Updated the interval & comments in the histogram. PTAL? https://codereview.chromium.org/2749383003/diff/60001/third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.cc File third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.cc (right): https://codereview.chromium.org/2749383003/diff/60001/third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.cc#newcode24 third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.cc:24: ...
3 years, 8 months ago (2017-04-03 13:01:20 UTC) #21
Sami
lgtm. https://codereview.chromium.org/2749383003/diff/100001/third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.cc File third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.cc (right): https://codereview.chromium.org/2749383003/diff/100001/third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.cc#newcode110 third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.cc:110: DCHECK(initialized_); nit: Please keep the DCHECK first.
3 years, 8 months ago (2017-04-03 13:56:22 UTC) #22
kinuko
isherman@: could you review histogram changes? https://codereview.chromium.org/2749383003/diff/100001/third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.cc File third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.cc (right): https://codereview.chromium.org/2749383003/diff/100001/third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.cc#newcode110 third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.cc:110: DCHECK(initialized_); On 2017/04/03 ...
3 years, 8 months ago (2017-04-03 23:23:47 UTC) #24
Ilya Sherman
Metrics LGTM
3 years, 8 months ago (2017-04-03 23:55:16 UTC) #25
nhiroki
lgtm https://codereview.chromium.org/2749383003/diff/60001/third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.h File third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.h (right): https://codereview.chromium.org/2749383003/diff/60001/third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.h#newcode64 third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.h:64: ThreadLoadTracker load_tracker_; On 2017/03/24 10:48:10, Sami wrote: > ...
3 years, 8 months ago (2017-04-04 03:13:06 UTC) #26
altimin
lgtm. It seems that sleeping in the middle of the task can affect this metric ...
3 years, 8 months ago (2017-04-04 11:20:55 UTC) #27
kinuko
On 2017/04/04 11:20:55, altimin wrote: > lgtm. > > It seems that sleeping in the ...
3 years, 8 months ago (2017-04-05 01:16:29 UTC) #28
kinuko
falken@: do you want to take one more look or I can just land?
3 years, 8 months ago (2017-04-05 01:16:56 UTC) #29
falken
lgtm
3 years, 8 months ago (2017-04-05 01:19:34 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2749383003/120001
3 years, 8 months ago (2017-04-05 01:26:56 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_android on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_android/builds/241128) cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, ...
3 years, 8 months ago (2017-04-05 01:39:18 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2749383003/140001
3 years, 8 months ago (2017-04-05 06:00:10 UTC) #38
commit-bot: I haz the power
3 years, 8 months ago (2017-04-05 07:42:37 UTC) #41
Message was sent while issue was closed.
Committed patchset #6 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/d81b3970f7e6120f5b145af37d33...

Powered by Google App Engine
This is Rietveld 408576698