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

Issue 2184023002: Report the duration of sampled tasks with histogram. (Closed)

Created:
4 years, 4 months ago by sunyunjia
Modified:
4 years, 4 months ago
CC:
chromium-reviews, scheduler-bugs_chromium.org, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Report the duration of sampled tasks with histogram. BUG=630688 Committed: https://crrev.com/1aca73dda839f813d2a4d6fbcf654ed488a197dd Cr-Commit-Position: refs/heads/master@{#409606}

Patch Set 1 #

Total comments: 41

Patch Set 2 : Modified according to the reviews --v1 #

Patch Set 3 : Formatting, comment, and typo.. #

Total comments: 20

Patch Set 4 : Correcting the nits. #

Patch Set 5 : changed unit in histograms.xml #

Patch Set 6 : Edited comments #

Total comments: 1

Patch Set 7 : Delete blank line #

Patch Set 8 : Rename TaskDurationReporeter->TaskTimeReporter #

Patch Set 9 : scheduler_export #

Total comments: 8

Patch Set 10 : Remove the sampling part. Change bin number to 50. #

Total comments: 2

Patch Set 11 : Directly call from renderer_scheduler_impl.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -0 lines) Patch
M components/scheduler/renderer/renderer_scheduler_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 64 (33 generated)
sunyunjia
Try my first CL
4 years, 4 months ago (2016-07-27 03:53:42 UTC) #2
sunyunjia
Try my first CL
4 years, 4 months ago (2016-07-27 03:53:44 UTC) #3
majidvp
Great first CL! See my comments below. https://codereview.chromium.org/2184023002/diff/1/components/scheduler/BUILD.gn File components/scheduler/BUILD.gn (right): https://codereview.chromium.org/2184023002/diff/1/components/scheduler/BUILD.gn#newcode6 components/scheduler/BUILD.gn:6: import("//testing/test.gni") You ...
4 years, 4 months ago (2016-07-27 13:51:00 UTC) #4
sunyunjia
Hi Tim, This is the patch for bug 630688. Is UMA_HISTOGRAM_TIMES([1msec,10sec], 50bins) enough for the ...
4 years, 4 months ago (2016-07-27 17:28:43 UTC) #6
tdresser
LGTM with nits. You'll need a reviewer for histograms.xml, who will have comments about the ...
4 years, 4 months ago (2016-07-27 18:04:26 UTC) #7
majidvp
https://codereview.chromium.org/2184023002/diff/40001/components/scheduler/renderer/task_duration_reporter.cc File components/scheduler/renderer/task_duration_reporter.cc (right): https://codereview.chromium.org/2184023002/diff/40001/components/scheduler/renderer/task_duration_reporter.cc#newcode14 components/scheduler/renderer/task_duration_reporter.cc:14: TaskDurationReporter::TaskDurationReporter() : sample_count_(0) {} nit: same as above. Should ...
4 years, 4 months ago (2016-07-27 18:34:03 UTC) #8
sunyunjia
PTAL https://codereview.chromium.org/2184023002/diff/40001/components/scheduler/renderer/renderer_scheduler_impl.h File components/scheduler/renderer/renderer_scheduler_impl.h (right): https://codereview.chromium.org/2184023002/diff/40001/components/scheduler/renderer/renderer_scheduler_impl.h#newcode475 components/scheduler/renderer/renderer_scheduler_impl.h:475: TaskDurationReporter duration_reporter_; On 2016/07/27 18:04:25, tdresser wrote: > ...
4 years, 4 months ago (2016-07-27 19:51:05 UTC) #10
tdresser
Please wait for panicker@ to take a look as well.
4 years, 4 months ago (2016-07-27 19:54:58 UTC) #12
majidvp
https://codereview.chromium.org/2184023002/diff/100001/components/scheduler/renderer/renderer_scheduler_impl.h File components/scheduler/renderer/renderer_scheduler_impl.h (right): https://codereview.chromium.org/2184023002/diff/100001/components/scheduler/renderer/renderer_scheduler_impl.h#newcode475 components/scheduler/renderer/renderer_scheduler_impl.h:475: nit: frivolous blank line
4 years, 4 months ago (2016-07-27 20:05:42 UTC) #13
panicker
LGTM. Nit: Might be worth renaming to TaskTimeReporter vs TaskDurationReporter - incase we want to ...
4 years, 4 months ago (2016-07-27 20:25:30 UTC) #14
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/2184023002/140001
4 years, 4 months ago (2016-07-27 21:19:29 UTC) #19
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/2184023002/140001
4 years, 4 months ago (2016-07-27 21:23:57 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/226443)
4 years, 4 months ago (2016-07-27 21:29:57 UTC) #24
sunyunjia
Hi Ilya and Sami, Please do the owner review for this patch. Thanks!
4 years, 4 months ago (2016-07-27 22:43:58 UTC) #27
Ilya Sherman
https://codereview.chromium.org/2184023002/diff/160001/components/scheduler/renderer/task_time_reporter.cc File components/scheduler/renderer/task_time_reporter.cc (right): https://codereview.chromium.org/2184023002/diff/160001/components/scheduler/renderer/task_time_reporter.cc#newcode22 components/scheduler/renderer/task_time_reporter.cc:22: duration.InMicroseconds(), 1, 1000000, 100); Do you really need 100 ...
4 years, 4 months ago (2016-07-28 00:31:30 UTC) #28
Ilya Sherman
https://codereview.chromium.org/2184023002/diff/160001/components/scheduler/renderer/task_time_reporter.cc File components/scheduler/renderer/task_time_reporter.cc (right): https://codereview.chromium.org/2184023002/diff/160001/components/scheduler/renderer/task_time_reporter.cc#newcode22 components/scheduler/renderer/task_time_reporter.cc:22: duration.InMicroseconds(), 1, 1000000, 100); On 2016/07/28 00:31:30, Ilya Sherman ...
4 years, 4 months ago (2016-07-28 00:38:20 UTC) #29
Sami
https://codereview.chromium.org/2184023002/diff/160001/components/scheduler/renderer/task_time_reporter.cc File components/scheduler/renderer/task_time_reporter.cc (right): https://codereview.chromium.org/2184023002/diff/160001/components/scheduler/renderer/task_time_reporter.cc#newcode20 components/scheduler/renderer/task_time_reporter.cc:20: if (sample_count_ == kSampleInterval) { +brianderson@, didn't we figure ...
4 years, 4 months ago (2016-07-28 11:20:26 UTC) #31
tdresser
https://codereview.chromium.org/2184023002/diff/160001/components/scheduler/renderer/task_time_reporter.cc File components/scheduler/renderer/task_time_reporter.cc (right): https://codereview.chromium.org/2184023002/diff/160001/components/scheduler/renderer/task_time_reporter.cc#newcode20 components/scheduler/renderer/task_time_reporter.cc:20: if (sample_count_ == kSampleInterval) { On 2016/07/28 11:20:26, Sami ...
4 years, 4 months ago (2016-07-28 12:15:50 UTC) #32
majidvp
https://codereview.chromium.org/2184023002/diff/160001/components/scheduler/renderer/task_time_reporter.cc File components/scheduler/renderer/task_time_reporter.cc (right): https://codereview.chromium.org/2184023002/diff/160001/components/scheduler/renderer/task_time_reporter.cc#newcode20 components/scheduler/renderer/task_time_reporter.cc:20: if (sample_count_ == kSampleInterval) { On 2016/07/28 12:15:50, tdresser ...
4 years, 4 months ago (2016-07-28 13:30:11 UTC) #33
Sami
On 2016/07/28 13:30:11, majidvp wrote: > https://codereview.chromium.org/2184023002/diff/160001/components/scheduler/renderer/task_time_reporter.cc > File components/scheduler/renderer/task_time_reporter.cc (right): > > https://codereview.chromium.org/2184023002/diff/160001/components/scheduler/renderer/task_time_reporter.cc#newcode20 > ...
4 years, 4 months ago (2016-07-28 14:46:07 UTC) #34
Ilya Sherman
https://codereview.chromium.org/2184023002/diff/160001/components/scheduler/renderer/task_time_reporter.cc File components/scheduler/renderer/task_time_reporter.cc (right): https://codereview.chromium.org/2184023002/diff/160001/components/scheduler/renderer/task_time_reporter.cc#newcode22 components/scheduler/renderer/task_time_reporter.cc:22: duration.InMicroseconds(), 1, 1000000, 100); On 2016/07/28 12:15:50, tdresser wrote: ...
4 years, 4 months ago (2016-07-28 17:47:41 UTC) #35
tdresser
On 2016/07/28 17:47:41, Ilya Sherman wrote: > https://codereview.chromium.org/2184023002/diff/160001/components/scheduler/renderer/task_time_reporter.cc > File components/scheduler/renderer/task_time_reporter.cc (right): > > https://codereview.chromium.org/2184023002/diff/160001/components/scheduler/renderer/task_time_reporter.cc#newcode22 ...
4 years, 4 months ago (2016-07-28 18:21:25 UTC) #36
sunyunjia
The bucket number is reduced to 50. To compare the sampling version and non-sampling version, ...
4 years, 4 months ago (2016-08-02 23:48:19 UTC) #39
Ilya Sherman
metrics LGTM, thanks. https://codereview.chromium.org/2184023002/diff/180001/components/scheduler/renderer/task_time_reporter.cc File components/scheduler/renderer/task_time_reporter.cc (right): https://codereview.chromium.org/2184023002/diff/180001/components/scheduler/renderer/task_time_reporter.cc#newcode16 components/scheduler/renderer/task_time_reporter.cc:16: duration.InMicroseconds(), 1, 1000000, 50); Optional nit: ...
4 years, 4 months ago (2016-08-03 00:54:46 UTC) #42
Sami
https://codereview.chromium.org/2184023002/diff/180001/components/scheduler/renderer/task_time_reporter.cc File components/scheduler/renderer/task_time_reporter.cc (right): https://codereview.chromium.org/2184023002/diff/180001/components/scheduler/renderer/task_time_reporter.cc#newcode16 components/scheduler/renderer/task_time_reporter.cc:16: duration.InMicroseconds(), 1, 1000000, 50); On 2016/08/03 00:54:46, Ilya Sherman ...
4 years, 4 months ago (2016-08-03 10:01:22 UTC) #43
sunyunjia
I just removed the class. Now it is directly calling from renderer_scheduler_impl.
4 years, 4 months ago (2016-08-03 18:05:35 UTC) #46
Sami
Thanks, lgtm.
4 years, 4 months ago (2016-08-03 18:07:02 UTC) #47
majidvp
sunyunjia@: this CL no longer adds a new class so please update the CL description ...
4 years, 4 months ago (2016-08-03 18:36:22 UTC) #48
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/2184023002/200001
4 years, 4 months ago (2016-08-03 20:10:15 UTC) #60
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 4 months ago (2016-08-03 20:14:12 UTC) #62
commit-bot: I haz the power
4 years, 4 months ago (2016-08-03 20:17:02 UTC) #64
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/1aca73dda839f813d2a4d6fbcf654ed488a197dd
Cr-Commit-Position: refs/heads/master@{#409606}

Powered by Google App Engine
This is Rietveld 408576698