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

Issue 56973012: Implement Time::ThreadNow() on Mac. (Closed)

Created:
7 years, 1 month ago by fmeawad
Modified:
7 years, 1 month ago
CC:
chromium-reviews, erikwright+watch_chromium.org, nduca, tonyg
Base URL:
https://src.chromium.org/chrome/trunk/src/
Visibility:
Public.

Description

Implement thread-specific CPU time on Mac OS X This is different from https://code.google.com/p/chromium/codesearch#chromium/src/base/process/process_metrics_mac.cc&l=216 as it gets the per-thread CPU time while process metrics gets all-thread CPU usage. BUG=280744 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=233450

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Add checks for invlalid ThreadNow return times #

Patch Set 4 : add checks to make sure that ThreadNow returns a non-zero value #

Total comments: 21

Patch Set 5 : Remove an extra include #

Patch Set 6 : #

Patch Set 7 : #

Total comments: 4

Patch Set 8 : exclude OS_IOS from the IsThreadNowSupported check #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -4 lines) Patch
M base/time/time.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M base/time/time_mac.cc View 1 2 3 4 5 6 7 4 chunks +30 lines, -2 lines 0 comments Download
M base/time/time_unittest.cc View 1 2 3 1 chunk +6 lines, -1 line 1 comment Download

Messages

Total messages: 20 (0 generated)
fmeawad
As part of the effort to enhance TraceViewer, we are adding CPU time to all ...
7 years, 1 month ago (2013-11-05 18:10:13 UTC) #1
Robert Sesek
https://codereview.chromium.org/56973012/diff/130001/base/time/time.h File base/time/time.h (right): https://codereview.chromium.org/56973012/diff/130001/base/time/time.h#newcode552 base/time/time.h:552: defined(OS_MACOSX) OS_IOS implies OS_MACOSX https://codereview.chromium.org/56973012/diff/130001/base/time/time_mac.cc File base/time/time_mac.cc (right): https://codereview.chromium.org/56973012/diff/130001/base/time/time_mac.cc#newcode9 ...
7 years, 1 month ago (2013-11-05 18:32:07 UTC) #2
fmeawad
Thank you for the quick response. I have address all of your issues except regarding ...
7 years, 1 month ago (2013-11-05 19:34:24 UTC) #3
Robert Sesek
https://codereview.chromium.org/56973012/diff/130001/base/time/time.h File base/time/time.h (right): https://codereview.chromium.org/56973012/diff/130001/base/time/time.h#newcode552 base/time/time.h:552: defined(OS_MACOSX) On 2013/11/05 19:34:25, fmeawad-cr wrote: > On 2013/11/05 ...
7 years, 1 month ago (2013-11-05 19:49:01 UTC) #4
fmeawad
Sorry for the misunderstanding, issues addressed. PTAL. https://codereview.chromium.org/56973012/diff/130001/base/time/time.h File base/time/time.h (right): https://codereview.chromium.org/56973012/diff/130001/base/time/time.h#newcode552 base/time/time.h:552: defined(OS_MACOSX) On ...
7 years, 1 month ago (2013-11-05 21:59:49 UTC) #5
Robert Sesek
LGTM. Please also update the CL description to be a little more complete. Something like: ...
7 years, 1 month ago (2013-11-05 23:13:21 UTC) #6
Nico
This looks different from what https://code.google.com/p/chromium/codesearch#chromium/src/base/process/process_metrics_mac.cc&l=216 does. I suppose this does something different so this ...
7 years, 1 month ago (2013-11-05 23:20:05 UTC) #7
Robert Sesek
On 2013/11/05 23:20:05, Nico wrote: > This looks different from what > https://code.google.com/p/chromium/codesearch#chromium/src/base/process/process_metrics_mac.cc&l=216 > does. ...
7 years, 1 month ago (2013-11-05 23:39:05 UTC) #8
Nico
On 2013/11/05 23:39:05, rsesek wrote: > On 2013/11/05 23:20:05, Nico wrote: > > This looks ...
7 years, 1 month ago (2013-11-05 23:47:36 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fmeawad@chromium.org/56973012/370001
7 years, 1 month ago (2013-11-06 00:26:33 UTC) #10
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=34655
7 years, 1 month ago (2013-11-06 01:13:52 UTC) #11
Nico
lgtm
7 years, 1 month ago (2013-11-06 01:16:33 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fmeawad@chromium.org/56973012/370001
7 years, 1 month ago (2013-11-06 01:25:25 UTC) #13
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=94515
7 years, 1 month ago (2013-11-06 06:18:46 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fmeawad@chromium.org/56973012/370001
7 years, 1 month ago (2013-11-06 06:23:07 UTC) #15
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=94689
7 years, 1 month ago (2013-11-06 10:21:29 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fmeawad@chromium.org/56973012/370001
7 years, 1 month ago (2013-11-06 14:32:02 UTC) #17
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=94972
7 years, 1 month ago (2013-11-06 18:19:12 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fmeawad@chromium.org/56973012/370001
7 years, 1 month ago (2013-11-06 23:31:49 UTC) #19
commit-bot: I haz the power
7 years, 1 month ago (2013-11-07 01:01:49 UTC) #20
Message was sent while issue was closed.
Change committed as 233450

Powered by Google App Engine
This is Rietveld 408576698