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

Issue 2798213002: Add function to get total cpu time in thread (Closed)

Created:
3 years, 8 months ago by dproy
Modified:
3 years, 8 months ago
Reviewers:
benjhayden, tdresser
CC:
catapult-reviews_chromium.org, tracing-review_chromium.org
Target Ref:
refs/heads/master
Project:
catapult
Visibility:
Public.

Description

Add function to get total cpu time in thread This adds the most basic building block of the new cpu time metric - a function to compute total cpu time consumed by a thread within specified bounds. If slices straddle bounds, we assume cpu usage was uniformly distributed within the slice. The function is added to the new cpu_time.html file in tracing/extras/chrome. This file will eventually contain several other key pieces of the cpu time metric, similar to the expected queuing time metric. BUG=catapult:#3325 Review-Url: https://codereview.chromium.org/2798213002 Committed: https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/87e8335e7464200d1d500fc5f7ff6ab1f527714c

Patch Set 1 #

Total comments: 8

Patch Set 2 : Delete unused line #

Patch Set 3 : Use iterateOverIntersectingIntervals #

Patch Set 4 : Change bounds to range #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -0 lines) Patch
A tracing/tracing/extras/chrome/cpu_time.html View 1 2 3 1 chunk +47 lines, -0 lines 0 comments Download
A tracing/tracing/extras/chrome/cpu_time_test.html View 1 chunk +45 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 16 (6 generated)
dproy
3 years, 8 months ago (2017-04-06 00:17:38 UTC) #2
dproy
https://codereview.chromium.org/2798213002/diff/1/tracing/tracing/extras/chrome/cpu_time.html File tracing/tracing/extras/chrome/cpu_time.html (right): https://codereview.chromium.org/2798213002/diff/1/tracing/tracing/extras/chrome/cpu_time.html#newcode11 tracing/tracing/extras/chrome/cpu_time.html:11: tr.exportTo('tr.e.chrome.cpuTime', function() { I added added an extra level ...
3 years, 8 months ago (2017-04-06 00:21:43 UTC) #3
benjhayden
https://codereview.chromium.org/2798213002/diff/1/tracing/tracing/extras/chrome/cpu_time.html File tracing/tracing/extras/chrome/cpu_time.html (right): https://codereview.chromium.org/2798213002/diff/1/tracing/tracing/extras/chrome/cpu_time.html#newcode11 tracing/tracing/extras/chrome/cpu_time.html:11: tr.exportTo('tr.e.chrome.cpuTime', function() { On 2017/04/06 at 00:21:43, dproy wrote: ...
3 years, 8 months ago (2017-04-06 04:14:30 UTC) #4
dproy
https://codereview.chromium.org/2798213002/diff/1/tracing/tracing/extras/chrome/cpu_time.html File tracing/tracing/extras/chrome/cpu_time.html (right): https://codereview.chromium.org/2798213002/diff/1/tracing/tracing/extras/chrome/cpu_time.html#newcode11 tracing/tracing/extras/chrome/cpu_time.html:11: tr.exportTo('tr.e.chrome.cpuTime', function() { On 2017/04/06 04:14:30, benjhayden wrote: > ...
3 years, 8 months ago (2017-04-06 14:15:08 UTC) #5
dproy
https://codereview.chromium.org/2798213002/diff/1/tracing/tracing/extras/chrome/cpu_time.html File tracing/tracing/extras/chrome/cpu_time.html (right): https://codereview.chromium.org/2798213002/diff/1/tracing/tracing/extras/chrome/cpu_time.html#newcode15 tracing/tracing/extras/chrome/cpu_time.html:15: function getCpuTimeForThread(thread, bounds) { On 2017/04/06 14:15:08, dproy wrote: ...
3 years, 8 months ago (2017-04-06 15:05:59 UTC) #6
dproy
The CL has now been updated to be in sync with https://codereview.chromium.org/2804043003/ and is ready ...
3 years, 8 months ago (2017-04-07 18:01:03 UTC) #7
benjhayden
lgtm
3 years, 8 months ago (2017-04-07 18:10:02 UTC) #8
commit-bot: I haz the power
This CL has an open dependency (Issue 2800933002 Patch 40001). Please resolve the dependency and ...
3 years, 8 months ago (2017-04-07 18:27:07 UTC) #11
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/2798213002/60001
3 years, 8 months ago (2017-04-07 21:04:29 UTC) #13
commit-bot: I haz the power
3 years, 8 months ago (2017-04-07 21:28:08 UTC) #16
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/external/github.com/catapult-project/catapu...

Powered by Google App Engine
This is Rietveld 408576698