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

Issue 12040075: Log event start and event end separately when using --log-timer-events. (Closed)

Created:
7 years, 11 months ago by Yang
Modified:
7 years, 10 months ago
Reviewers:
haraken, Jakob Kummerow
CC:
v8-dev
Visibility:
Public.

Description

Log event start and event end separately when using --log-timer-events. R=haraken@chromium.org BUG= Committed: https://code.google.com/p/v8/source/detail?r=13529

Patch Set 1 #

Patch Set 2 : remove undistort #

Patch Set 3 : some more fixes #

Total comments: 9

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -246 lines) Patch
M src/counters.cc View 2 chunks +5 lines, -3 lines 0 comments Download
M src/log.h View 3 chunks +8 lines, -8 lines 0 comments Download
M src/log.cc View 2 chunks +10 lines, -25 lines 0 comments Download
M src/vm-state-inl.h View 2 chunks +5 lines, -4 lines 0 comments Download
M tools/plot-timer-events View 1 1 chunk +12 lines, -5 lines 0 comments Download
M tools/plot-timer-events.js View 1 2 3 13 chunks +95 lines, -201 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Yang
7 years, 11 months ago (2013-01-24 17:55:29 UTC) #1
haraken
LGTM for files other than plot-timer-events.js. I'd like to have some V8 expert (who has ...
7 years, 10 months ago (2013-01-28 12:35:49 UTC) #2
Jakob Kummerow
plot-timer-events.js LGTM (if you address haraken's comments).
7 years, 10 months ago (2013-01-28 14:40:08 UTC) #3
Yang
7 years, 10 months ago (2013-01-28 14:42:53 UTC) #4
Message was sent while issue was closed.
https://codereview.chromium.org/12040075/diff/5001/tools/plot-timer-events.js
File tools/plot-timer-events.js (right):

https://codereview.chromium.org/12040075/diff/5001/tools/plot-timer-events.js...
tools/plot-timer-events.js:85: return this[this.length-1];
On 2013/01/28 12:35:49, haraken1 wrote:
> Nit: this.length - 1 (Spaces needed around '-')

Done.

https://codereview.chromium.org/12040075/diff/5001/tools/plot-timer-events.js...
tools/plot-timer-events.js:132: function AccountForDistortionToMs(timestamp) {
On 2013/01/28 12:35:49, haraken1 wrote:
> I don't fully understand what 'AccountForDistortionToMs' means. Maybe
> 'AlignTimestampToMillisecondResolution' ?

I changed that into parseTimeStamp used in CollectData(). It combines conversion
to milliseconds and accounts for distortion.

https://codereview.chromium.org/12040075/diff/5001/tools/plot-timer-events.js...
tools/plot-timer-events.js:174: // Find out about the thread_id.
On 2013/01/28 12:35:49, haraken1 wrote:
> Nit: Find out the thread_id.

Done.

https://codereview.chromium.org/12040075/diff/5001/tools/plot-timer-events.js...
tools/plot-timer-events.js:175: var finished_event = TimerEvents[name];
On 2013/01/28 12:35:49, haraken1 wrote:
> if (finished_event === undefined) return;

This should never happen, as asserted below. I moved up that assertion.

Powered by Google App Engine
This is Rietveld 408576698