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

Issue 2351963006: Add range of interest support to cpuTimeMetric. (Closed)

Created:
4 years, 3 months ago by erikchen
Modified:
4 years, 2 months ago
CC:
benjhayden, catapult-reviews_chromium.org, eakuefner, tracing-review_chromium.org
Target Ref:
refs/heads/master
Project:
catapult
Visibility:
Public.

Description

Add range of interest support to cpuTimeMetric. This CL is mostly clean up. It has several small logic fixes: * Ignore slices that don't have cpuDuration. * When there is a rangeOfInterest, calculate the overlap between that and a slice to determine how much of a slice's cpuDuration counts towards the total. * Add test for rangeOFInterest path [and fix errors]. BUG=chromium:640312 Committed: https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/a8deb272b550b60794e1c376f58d6240ddbc5da3

Patch Set 1 #

Total comments: 15

Patch Set 2 : comments from nednguyen and charliea. #

Total comments: 4

Patch Set 3 : threads -> cores #

Total comments: 5

Patch Set 4 : Comments from ben. #

Total comments: 22

Patch Set 5 : Add test, comments, etc. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -28 lines) Patch
M tracing/tracing/metrics/system_health/cpu_time_metric.html View 1 2 3 4 4 chunks +38 lines, -24 lines 0 comments Download
M tracing/tracing/metrics/system_health/cpu_time_metric_test.html View 1 2 3 4 3 chunks +34 lines, -4 lines 0 comments Download

Messages

Total messages: 50 (28 generated)
erikchen
nednguyen: Please review.
4 years, 3 months ago (2016-09-20 22:24:15 UTC) #4
nednguyen
4 years, 3 months ago (2016-09-20 22:26:44 UTC) #6
erikchen
On 2016/09/20 22:26:44, nednguyen wrote: ping - nednguyen, can you review given that you were ...
4 years, 3 months ago (2016-09-21 20:06:44 UTC) #9
nednguyen
I am patching your CL & found the results of cpuTimeMetric on sfgates.json trace is ...
4 years, 3 months ago (2016-09-21 20:27:29 UTC) #10
charliea (OOO until 10-5)
https://codereview.chromium.org/2351963006/diff/1/tracing/tracing/metrics/system_health/cpu_time_metric.html File tracing/tracing/metrics/system_health/cpu_time_metric.html (right): https://codereview.chromium.org/2351963006/diff/1/tracing/tracing/metrics/system_health/cpu_time_metric.html#newcode44 tracing/tracing/metrics/system_health/cpu_time_metric.html:44: slice.start,slice.end); Filed as https://github.com/catapult-project/catapult/issues/2836 https://codereview.chromium.org/2351963006/diff/1/tracing/tracing/metrics/system_health/cpu_time_metric.html#newcode52 tracing/tracing/metrics/system_health/cpu_time_metric.html:52: threadCpuTime += slice.cpuDuration ...
4 years, 3 months ago (2016-09-21 20:44:14 UTC) #11
erikchen
https://codereview.chromium.org/2351963006/diff/1/tracing/tracing/metrics/system_health/cpu_time_metric.html File tracing/tracing/metrics/system_health/cpu_time_metric.html (right): https://codereview.chromium.org/2351963006/diff/1/tracing/tracing/metrics/system_health/cpu_time_metric.html#newcode44 tracing/tracing/metrics/system_health/cpu_time_metric.html:44: slice.start,slice.end); On 2016/09/21 20:27:29, nednguyen wrote: > nits: space ...
4 years, 3 months ago (2016-09-21 22:37:20 UTC) #12
nednguyen
lgtm
4 years, 3 months ago (2016-09-21 22:40:16 UTC) #15
nednguyen
https://codereview.chromium.org/2351963006/diff/20001/tracing/tracing/metrics/system_health/cpu_time_metric.html File tracing/tracing/metrics/system_health/cpu_time_metric.html (right): https://codereview.chromium.org/2351963006/diff/20001/tracing/tracing/metrics/system_health/cpu_time_metric.html#newcode20 tracing/tracing/metrics/system_health/cpu_time_metric.html:20: tr.v.HistogramBinBoundaries.createExponential(0.01, 50, 200); I still think 50 here mean ...
4 years, 3 months ago (2016-09-21 22:43:25 UTC) #16
erikchen
https://codereview.chromium.org/2351963006/diff/20001/tracing/tracing/metrics/system_health/cpu_time_metric.html File tracing/tracing/metrics/system_health/cpu_time_metric.html (right): https://codereview.chromium.org/2351963006/diff/20001/tracing/tracing/metrics/system_health/cpu_time_metric.html#newcode20 tracing/tracing/metrics/system_health/cpu_time_metric.html:20: tr.v.HistogramBinBoundaries.createExponential(0.01, 50, 200); On 2016/09/21 22:43:25, nednguyen wrote: > ...
4 years, 3 months ago (2016-09-21 22:47:20 UTC) #17
nednguyen
https://codereview.chromium.org/2351963006/diff/20001/tracing/tracing/metrics/system_health/cpu_time_metric.html File tracing/tracing/metrics/system_health/cpu_time_metric.html (right): https://codereview.chromium.org/2351963006/diff/20001/tracing/tracing/metrics/system_health/cpu_time_metric.html#newcode20 tracing/tracing/metrics/system_health/cpu_time_metric.html:20: tr.v.HistogramBinBoundaries.createExponential(0.01, 50, 200); On 2016/09/21 22:47:20, erikchen wrote: > ...
4 years, 3 months ago (2016-09-21 22:50:17 UTC) #18
erikchen
https://codereview.chromium.org/2351963006/diff/20001/tracing/tracing/metrics/system_health/cpu_time_metric.html File tracing/tracing/metrics/system_health/cpu_time_metric.html (right): https://codereview.chromium.org/2351963006/diff/20001/tracing/tracing/metrics/system_health/cpu_time_metric.html#newcode20 tracing/tracing/metrics/system_health/cpu_time_metric.html:20: tr.v.HistogramBinBoundaries.createExponential(0.01, 50, 200); On 2016/09/21 22:50:17, nednguyen wrote: > ...
4 years, 3 months ago (2016-09-21 22:54:04 UTC) #19
benjhayden
2 nits then lgtm https://codereview.chromium.org/2351963006/diff/40001/tracing/tracing/metrics/system_health/cpu_time_metric.html File tracing/tracing/metrics/system_health/cpu_time_metric.html (right): https://codereview.chromium.org/2351963006/diff/40001/tracing/tracing/metrics/system_health/cpu_time_metric.html#newcode52 tracing/tracing/metrics/system_health/cpu_time_metric.html:52: var sliceDuration = slice.end - ...
4 years, 3 months ago (2016-09-21 23:45:54 UTC) #25
benjhayden
@nedn: Unable to repro: https://screenshot.googleplex.com/nvbSLqDEsHr.png
4 years, 3 months ago (2016-09-21 23:56:12 UTC) #26
erikchen
https://codereview.chromium.org/2351963006/diff/40001/tracing/tracing/metrics/system_health/cpu_time_metric.html File tracing/tracing/metrics/system_health/cpu_time_metric.html (right): https://codereview.chromium.org/2351963006/diff/40001/tracing/tracing/metrics/system_health/cpu_time_metric.html#newcode52 tracing/tracing/metrics/system_health/cpu_time_metric.html:52: var sliceDuration = slice.end - slice.start; On 2016/09/21 23:45:53, ...
4 years, 3 months ago (2016-09-21 23:56:16 UTC) #27
nednguyen
On 2016/09/21 23:56:12, benjhayden wrote: > @nedn: Unable to repro: https://screenshot.googleplex.com/nvbSLqDEsHr.png Oh, I just check ...
4 years, 3 months ago (2016-09-22 01:18:51 UTC) #32
nednguyen
Sorry that I didn't notice this earlier, but the way we are computing cpu metric ...
4 years, 3 months ago (2016-09-22 01:36:10 UTC) #33
charliea (OOO until 10-5)
https://codereview.chromium.org/2351963006/diff/40001/tracing/tracing/metrics/system_health/cpu_time_metric.html File tracing/tracing/metrics/system_health/cpu_time_metric.html (right): https://codereview.chromium.org/2351963006/diff/40001/tracing/tracing/metrics/system_health/cpu_time_metric.html#newcode15 tracing/tracing/metrics/system_health/cpu_time_metric.html:15: // Use a lower bound of zero for the ...
4 years, 2 months ago (2016-09-22 17:54:29 UTC) #34
charliea (OOO until 10-5)
Also: could you make the CL title more specific? Maybe something like "Add range of ...
4 years, 2 months ago (2016-09-22 17:55:26 UTC) #35
erikchen
All comments have been addressed. nednguyen: I'm going to fix your issue about detecting Chrome ...
4 years, 2 months ago (2016-09-22 21:38:10 UTC) #41
nednguyen
On 2016/09/22 21:38:10, erikchen wrote: > All comments have been addressed. > > nednguyen: I'm ...
4 years, 2 months ago (2016-09-22 21:40:20 UTC) #42
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/2351963006/80001
4 years, 2 months ago (2016-09-23 21:45:18 UTC) #47
commit-bot: I haz the power
4 years, 2 months ago (2016-09-23 21:50:14 UTC) #49
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/external/github.com/catapult-project/catapu...

Powered by Google App Engine
This is Rietveld 408576698