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 1959103004: Implement CPU time for OS X and POSIX. (Closed)

Created:
4 years, 7 months ago by lpy
Modified:
4 years, 7 months ago
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Implement CPU time for OS X and POSIX. V8 tracing controller uses 2 clocks: wall clock and cpu clock. This patch implements CPU time for OS X and POSIX to provide more accurate accounting of CPU time used by each thread. BUG=v8:4984 LOG=n Committed: https://crrev.com/025f3d262bab2748362374f1b90ac723a9655ee4 Cr-Commit-Position: refs/heads/master@{#36188}

Patch Set 1 #

Total comments: 8

Patch Set 2 : #

Total comments: 12

Patch Set 3 : #

Patch Set 4 : #

Total comments: 4

Patch Set 5 : Address fadi's comments. #

Patch Set 6 : #

Total comments: 2

Patch Set 7 : #

Patch Set 8 : #

Total comments: 4

Patch Set 9 : Use pthread_mach_thread_np #

Patch Set 10 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -7 lines) Patch
M src/base/platform/time.h View 1 2 3 4 5 2 chunks +26 lines, -1 line 1 comment Download
M src/base/platform/time.cc View 1 2 3 4 5 6 7 8 9 4 chunks +73 lines, -6 lines 0 comments Download
M test/unittests/base/platform/time-unittest.cc View 2 chunks +28 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (9 generated)
lpy
PTAL.
4 years, 7 months ago (2016-05-09 20:34:37 UTC) #2
fmeawad
https://codereview.chromium.org/1959103004/diff/1/src/base/platform/time.cc File src/base/platform/time.cc (left): https://codereview.chromium.org/1959103004/diff/1/src/base/platform/time.cc#oldcode22 src/base/platform/time.cc:22: #include "src/base/win32-headers.h" This line should be untouched in this ...
4 years, 7 months ago (2016-05-09 21:50:32 UTC) #3
lpy
PTAL. https://codereview.chromium.org/1959103004/diff/1/src/base/platform/time.cc File src/base/platform/time.cc (left): https://codereview.chromium.org/1959103004/diff/1/src/base/platform/time.cc#oldcode22 src/base/platform/time.cc:22: #include "src/base/win32-headers.h" On 2016/05/09 21:50:32, fmeawad wrote: > ...
4 years, 7 months ago (2016-05-09 22:13:41 UTC) #4
fmeawad
It looks good in general, some more minor comments. https://codereview.chromium.org/1959103004/diff/20001/src/base/platform/time.cc File src/base/platform/time.cc (right): https://codereview.chromium.org/1959103004/diff/20001/src/base/platform/time.cc#newcode55 src/base/platform/time.cc:55: ...
4 years, 7 months ago (2016-05-09 23:22:33 UTC) #5
fmeawad
a couple more :) https://codereview.chromium.org/1959103004/diff/20001/test/unittests/base/platform/time-unittest.cc File test/unittests/base/platform/time-unittest.cc (right): https://codereview.chromium.org/1959103004/diff/20001/test/unittests/base/platform/time-unittest.cc#newcode188 test/unittests/base/platform/time-unittest.cc:188: #if V8_OS_ANDROID || V8_OS_WIN Why ...
4 years, 7 months ago (2016-05-09 23:24:56 UTC) #6
lpy
I updated the CL. PTAL. https://codereview.chromium.org/1959103004/diff/20001/src/base/platform/time.cc File src/base/platform/time.cc (right): https://codereview.chromium.org/1959103004/diff/20001/src/base/platform/time.cc#newcode55 src/base/platform/time.cc:55: int64_t ConvertTimespecToMicros(const struct timespec& ...
4 years, 7 months ago (2016-05-09 23:51:15 UTC) #7
fmeawad
https://codereview.chromium.org/1959103004/diff/20001/src/base/platform/time.cc File src/base/platform/time.cc (right): https://codereview.chromium.org/1959103004/diff/20001/src/base/platform/time.cc#newcode55 src/base/platform/time.cc:55: int64_t ConvertTimespecToMicros(const struct timespec& ts) { On 2016/05/09 23:51:15, ...
4 years, 7 months ago (2016-05-10 18:12:48 UTC) #8
lpy
I addressed the comments, PTAL. https://codereview.chromium.org/1959103004/diff/60001/src/base/platform/time.cc File src/base/platform/time.cc (right): https://codereview.chromium.org/1959103004/diff/60001/src/base/platform/time.cc#newcode615 src/base/platform/time.cc:615: // TODO(lpy): See issue ...
4 years, 7 months ago (2016-05-10 18:37:10 UTC) #9
fmeawad
LGTM make sure to use Ticks are in microseconds everywhere.
4 years, 7 months ago (2016-05-10 18:43:01 UTC) #10
lpy
Thanks. + bmeurer@ and jochen@ for review. PTAL.
4 years, 7 months ago (2016-05-10 18:45:26 UTC) #12
Robert Sesek
Drive-by comment. https://codereview.chromium.org/1959103004/diff/100001/src/base/platform/time.cc File src/base/platform/time.cc (right): https://codereview.chromium.org/1959103004/diff/100001/src/base/platform/time.cc#newcode33 src/base/platform/time.cc:33: mach_port_t thread = mach_thread_self(); The thread port ...
4 years, 7 months ago (2016-05-10 18:58:07 UTC) #16
lpy
Thanks for pointing it out. https://codereview.chromium.org/1959103004/diff/100001/src/base/platform/time.cc File src/base/platform/time.cc (right): https://codereview.chromium.org/1959103004/diff/100001/src/base/platform/time.cc#newcode33 src/base/platform/time.cc:33: mach_port_t thread = mach_thread_self(); ...
4 years, 7 months ago (2016-05-10 19:10:39 UTC) #17
Robert Sesek
https://codereview.chromium.org/1959103004/diff/140001/src/base/platform/time.cc File src/base/platform/time.cc (right): https://codereview.chromium.org/1959103004/diff/140001/src/base/platform/time.cc#newcode53 src/base/platform/time.cc:53: kr = mach_port_deallocate(mach_task_self(), thread); If this is performance critical, ...
4 years, 7 months ago (2016-05-10 21:24:58 UTC) #18
lpy
Thanks. https://codereview.chromium.org/1959103004/diff/140001/src/base/platform/time.cc File src/base/platform/time.cc (right): https://codereview.chromium.org/1959103004/diff/140001/src/base/platform/time.cc#newcode53 src/base/platform/time.cc:53: kr = mach_port_deallocate(mach_task_self(), thread); On 2016/05/10 21:24:58, Robert ...
4 years, 7 months ago (2016-05-10 21:51:01 UTC) #19
Robert Sesek
lgtm
4 years, 7 months ago (2016-05-10 22:32:21 UTC) #20
jochen (gone - plz use gerrit)
lgtm https://codereview.chromium.org/1959103004/diff/180001/src/base/platform/time.h File src/base/platform/time.h (right): https://codereview.chromium.org/1959103004/diff/180001/src/base/platform/time.h#newcode394 src/base/platform/time.h:394: }; DISALLOW_COPY_AND_ASSIGN()
4 years, 7 months ago (2016-05-11 08:58:07 UTC) #21
lpy
On 2016/05/11 08:58:07, jochen (soon OOO) wrote: > lgtm > > https://codereview.chromium.org/1959103004/diff/180001/src/base/platform/time.h > File src/base/platform/time.h ...
4 years, 7 months ago (2016-05-11 16:38:57 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1959103004/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1959103004/180001
4 years, 7 months ago (2016-05-11 20:58:13 UTC) #25
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 7 months ago (2016-05-11 21:02:24 UTC) #27
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/025f3d262bab2748362374f1b90ac723a9655ee4 Cr-Commit-Position: refs/heads/master@{#36188}
4 years, 7 months ago (2016-05-11 21:03:53 UTC) #29
lpy
A revert of this CL (patchset #10 id:180001) has been created in https://codereview.chromium.org/1966173003/ by lpy@chromium.org. ...
4 years, 7 months ago (2016-05-11 21:09:18 UTC) #30
lpy
4 years, 7 months ago (2016-05-11 21:20:40 UTC) #31
Message was sent while issue was closed.
will reland the CL in https://codereview.chromium.org/1966183003/

Powered by Google App Engine
This is Rietveld 408576698