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

Issue 8590015: trace_event: distinguish between scoped begin/end and global start/finish events (Closed)

Created:
9 years, 1 month ago by jbates
Modified:
9 years ago
CC:
chromium-reviews
Visibility:
Public.

Description

trace_event: distinguish between scoped begin/end and global start/finish events BUG=100131 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=112722

Patch Set 1 #

Total comments: 11

Patch Set 2 : cleanup, TraceID, process pointer mangling #

Patch Set 3 : fixed comments #

Patch Set 4 : compile #

Patch Set 5 : ETW test compile #

Total comments: 19

Patch Set 6 : jam, nduca feedback #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+410 lines, -171 lines) Patch
M base/debug/trace_event.h View 1 2 3 4 5 20 chunks +187 lines, -52 lines 0 comments Download
M base/debug/trace_event.cc View 1 2 3 4 5 19 chunks +91 lines, -94 lines 0 comments Download
M base/debug/trace_event_unittest.cc View 1 7 chunks +97 lines, -12 lines 0 comments Download
M base/debug/trace_event_win.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M base/debug/trace_event_win_unittest.cc View 1 2 3 4 5 chunks +5 lines, -5 lines 0 comments Download
M base/test/trace_event_analyzer.h View 1 2 3 4 5 1 chunk +1 line, -1 line 1 comment Download
M base/test/trace_event_analyzer.cc View 1 2 3 4 5 3 chunks +4 lines, -4 lines 0 comments Download
M base/test/trace_event_analyzer_unittest.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
A chrome/browser/resources/tracing/tests/start_finish.json View 1 2 3 4 5 1 chunk +22 lines, -0 lines 1 comment Download

Messages

Total messages: 12 (0 generated)
jbates
PTAL http://codereview.chromium.org/8590015/diff/1/base/debug/trace_event.cc File base/debug/trace_event.cc (right): http://codereview.chromium.org/8590015/diff/1/base/debug/trace_event.cc#newcode81 base/debug/trace_event.cc:81: StringAppendF(out, "%llu", static_cast<unsigned long long>(as_uint())); Cleanup to match ...
9 years, 1 month ago (2011-11-17 01:15:28 UTC) #1
nduca
Tests && JSON file? The begin/end events dont' have IDs, would it make sense to ...
9 years, 1 month ago (2011-11-17 19:13:06 UTC) #2
nduca
On 2011/11/17 19:13:06, nduca wrote: > Tests && JSON file? > My bad haha, didn't ...
9 years, 1 month ago (2011-11-18 07:10:26 UTC) #3
jbates
On 2011/11/18 07:10:26, nduca wrote: > On 2011/11/17 19:13:06, nduca wrote: > > Tests && ...
9 years, 1 month ago (2011-11-18 19:46:51 UTC) #4
jbates
Regarding the increase in parameters: it may be possible to reduce code bloat in exchange ...
9 years ago (2011-11-23 00:41:10 UTC) #5
jbates
+phajdan for base/test owners PTAL
9 years ago (2011-11-23 22:36:59 UTC) #6
Paweł Hajdan Jr.
base/test LGTM
9 years ago (2011-11-24 08:33:27 UTC) #7
jar (doing other things)
Mostly readability comments, with a few substance questions/comments. http://codereview.chromium.org/8590015/diff/15001/base/debug/trace_event.cc File base/debug/trace_event.cc (right): http://codereview.chromium.org/8590015/diff/15001/base/debug/trace_event.cc#newcode81 base/debug/trace_event.cc:81: StringAppendF(out, ...
9 years ago (2011-12-01 01:47:49 UTC) #8
nduca
http://codereview.chromium.org/8590015/diff/15001/base/debug/trace_event.h File base/debug/trace_event.h (left): http://codereview.chromium.org/8590015/diff/15001/base/debug/trace_event.h#oldcode412 base/debug/trace_event.h:412: <3 http://codereview.chromium.org/8590015/diff/15001/base/debug/trace_event.h File base/debug/trace_event.h (right): http://codereview.chromium.org/8590015/diff/15001/base/debug/trace_event.h#newcode37 base/debug/trace_event.h:37: // BEGIN ...
9 years ago (2011-12-01 02:55:26 UTC) #9
jbates
jar, nduca: ptal http://codereview.chromium.org/8590015/diff/15001/base/debug/trace_event.cc File base/debug/trace_event.cc (right): http://codereview.chromium.org/8590015/diff/15001/base/debug/trace_event.cc#newcode81 base/debug/trace_event.cc:81: StringAppendF(out, "%llu", static_cast<unsigned long long>(as_uint())); On ...
9 years ago (2011-12-01 23:07:50 UTC) #10
nduca
LGTM
9 years ago (2011-12-02 00:00:47 UTC) #11
jar (doing other things)
9 years ago (2011-12-02 00:09:32 UTC) #12
LGTM with nit below.

Thanks

http://codereview.chromium.org/8590015/diff/21001/base/test/trace_event_analy...
File base/test/trace_event_analyzer.h (right):

http://codereview.chromium.org/8590015/diff/21001/base/test/trace_event_analy...
base/test/trace_event_analyzer.h:415: double min_us;
nit: Abbreviations are frowned on... IMO, *_microseconds would be simpler... and
not a big deal to type.

...yeah... I saw "us" was used in time.h.... but that was probably not a great
idea.  It gets worse when you look at:
mean_us

We're not that mean! ;-)

http://codereview.chromium.org/8590015/diff/21001/chrome/browser/resources/tr...
File chrome/browser/resources/tracing/tests/start_finish.json (right):

http://codereview.chromium.org/8590015/diff/21001/chrome/browser/resources/tr...
chrome/browser/resources/tracing/tests/start_finish.json:21:
{"cat":"r","pid":1,"tid":1,"ts":900,"ph":"F","name":"A","args":{},"id":"1a"}
+1  This is MUCH nicer ;-)

Powered by Google App Engine
This is Rietveld 408576698