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

Issue 2956683002: chrome://profiler infrastructure uses base time types. (Closed)

Created:
3 years, 5 months ago by tdresser
Modified:
3 years, 5 months ago
Reviewers:
stanisc, gab, altimin
CC:
chromium-reviews, blink-reviews, danakj+watch_chromium.org, scheduler-bugs_chromium.org, kinuko+watch, vmpstr+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

chrome://profiler infrastructure uses base time types. Previously, chrome://profiler avoided base::TimeTicks and base::TimeDelta because they're 64 bits. At this point, that appears to be premature optimization. Switch to using the base time types. This is required for using chrome://profiler's infrastructure for building thread time UMA metrics. BUG=736449 Review-Url: https://codereview.chromium.org/2956683002 Cr-Commit-Position: refs/heads/master@{#483054} Committed: https://chromium.googlesource.com/chromium/src/+/6f2691cc7756d599ce5622cb7c9fc854afcf3c57

Patch Set 1 #

Patch Set 2 : Fix test #

Total comments: 14

Patch Set 3 : Address feedback. #

Total comments: 2

Patch Set 4 : Address nit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -376 lines) Patch
M base/BUILD.gn View 1 2 2 chunks +0 lines, -3 lines 0 comments Download
M base/debug/task_annotator.cc View 1 chunk +1 line, -1 line 0 comments Download
M base/profiler/scoped_profile.h View 1 chunk +0 lines, -1 line 0 comments Download
D base/profiler/tracked_time.h View 1 chunk +0 lines, -71 lines 0 comments Download
D base/profiler/tracked_time.cc View 1 chunk +0 lines, -68 lines 0 comments Download
D base/profiler/tracked_time_unittest.cc View 1 chunk +0 lines, -105 lines 0 comments Download
M base/threading/worker_pool_posix.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M base/tracked_objects.h View 1 2 8 chunks +13 lines, -13 lines 0 comments Download
M base/tracked_objects.cc View 1 2 15 chunks +44 lines, -37 lines 0 comments Download
M base/tracked_objects_unittest.cc View 1 2 20 chunks +86 lines, -66 lines 0 comments Download
M base/tracking_info.h View 3 chunks +3 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 35 (22 generated)
tdresser
I'm hoping to build a CPU time UMA on top of the profiler architecture, and ...
3 years, 5 months ago (2017-06-26 15:36:11 UTC) #8
gab
I agree that we've likely crossed the "wasteful" barrier now that we ship 64-bit builds ...
3 years, 5 months ago (2017-06-26 21:48:12 UTC) #11
gab
https://codereview.chromium.org/2956683002/diff/20001/base/profiler/tracked_time.h File base/profiler/tracked_time.h (left): https://codereview.chromium.org/2956683002/diff/20001/base/profiler/tracked_time.h#oldcode18 base/profiler/tracked_time.h:18: // windows, a 64 bit timer is expensive to ...
3 years, 5 months ago (2017-06-26 22:06:53 UTC) #12
gab
On 2017/06/26 22:06:53, gab wrote: > https://codereview.chromium.org/2956683002/diff/20001/base/profiler/tracked_time.h > File base/profiler/tracked_time.h (left): > > https://codereview.chromium.org/2956683002/diff/20001/base/profiler/tracked_time.h#oldcode18 > ...
3 years, 5 months ago (2017-06-26 22:11:07 UTC) #15
stanisc
https://codereview.chromium.org/2956683002/diff/20001/base/profiler/tracked_time.h File base/profiler/tracked_time.h (left): https://codereview.chromium.org/2956683002/diff/20001/base/profiler/tracked_time.h#oldcode18 base/profiler/tracked_time.h:18: // windows, a 64 bit timer is expensive to ...
3 years, 5 months ago (2017-06-26 22:33:21 UTC) #16
tdresser
PTAL https://codereview.chromium.org/2956683002/diff/20001/base/profiler/tracked_time.h File base/profiler/tracked_time.h (left): https://codereview.chromium.org/2956683002/diff/20001/base/profiler/tracked_time.h#oldcode18 base/profiler/tracked_time.h:18: // windows, a 64 bit timer is expensive ...
3 years, 5 months ago (2017-06-27 13:21:56 UTC) #17
gab
lgtm
3 years, 5 months ago (2017-06-27 21:10:31 UTC) #22
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/2956683002/40001
3 years, 5 months ago (2017-06-28 12:24:17 UTC) #24
tdresser
+altimin for tiny change to third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc
3 years, 5 months ago (2017-06-28 12:24:49 UTC) #27
altimin
lgtm with nit https://codereview.chromium.org/2956683002/diff/40001/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc File third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc (right): https://codereview.chromium.org/2956683002/diff/40001/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc#newcode35 third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc:35: base::TimeDelta::FromMilliseconds(duration.InMilliseconds())); nit: FromMilliseconds is not needed ...
3 years, 5 months ago (2017-06-28 13:57:42 UTC) #28
tdresser
https://codereview.chromium.org/2956683002/diff/40001/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc File third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc (right): https://codereview.chromium.org/2956683002/diff/40001/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc#newcode35 third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc:35: base::TimeDelta::FromMilliseconds(duration.InMilliseconds())); On 2017/06/28 13:57:42, altimin wrote: > nit: FromMilliseconds ...
3 years, 5 months ago (2017-06-28 15:37:34 UTC) #29
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/2956683002/60001
3 years, 5 months ago (2017-06-28 15:37:49 UTC) #32
commit-bot: I haz the power
3 years, 5 months ago (2017-06-28 17:54:00 UTC) #35
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/6f2691cc7756d599ce5622cb7c9f...

Powered by Google App Engine
This is Rietveld 408576698