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

Issue 12096115: Update tracing framework to optionally use a ringbuffer. (Closed)

Created:
7 years, 10 months ago by dsinclair
Modified:
7 years, 9 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org
Visibility:
Public.

Description

Update tracing framework to optionally use a ringbuffer. This updates the code to allow passing a continuous_tracing option into the trace framework. When enabled a ringbuffer will be used for event storage instead of a simple vector. The continuous_tracing option will allow us to trace for longer periods of time without needing to worry that we'll stop tracing before hitting the event we're looking for. BUG=156025 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=188505

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Plumb continuous tracing trough to make it optional. #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 4

Patch Set 7 : Use a class for the logging buffer. #

Patch Set 8 : Update to new mode flag. #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : Syncing to master. #

Total comments: 2

Patch Set 13 : #

Patch Set 14 : Merging with master. #

Total comments: 22

Patch Set 15 : #

Patch Set 16 : #

Patch Set 17 : Merging to master. #

Patch Set 18 : Fix compile error on windows machines. #

Patch Set 19 : With less friends. #

Total comments: 8

Patch Set 20 : #

Patch Set 21 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+227 lines, -58 lines) Patch
M base/debug/trace_event_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 5 chunks +27 lines, -5 lines 0 comments Download
M base/debug/trace_event_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 15 chunks +190 lines, -51 lines 0 comments Download
M base/debug/trace_event_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/devtools/devtools_tracing_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -2 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
dsinclair
7 years, 10 months ago (2013-02-01 19:04:16 UTC) #1
nduca
Woah, this is cool. But, can you make it an option that you specify when ...
7 years, 10 months ago (2013-02-01 21:39:19 UTC) #2
dsinclair
PTAL. This will function without any changes to the trace-viewer code, you just won't be ...
7 years, 10 months ago (2013-02-07 18:41:42 UTC) #3
nduca
https://codereview.chromium.org/12096115/diff/24003/base/debug/trace_event_impl.h File base/debug/trace_event_impl.h (right): https://codereview.chromium.org/12096115/diff/24003/base/debug/trace_event_impl.h#newcode211 base/debug/trace_event_impl.h:211: void SetContinuousTracing(bool continuous_tracing) { I like it, but can ...
7 years, 10 months ago (2013-02-12 19:42:22 UTC) #4
nduca
Also, I think the cl descirption is a bit out of date.
7 years, 10 months ago (2013-02-12 19:42:34 UTC) #5
dsinclair
Nat, I've made the update to use a class for the buffer, the change is ...
7 years, 10 months ago (2013-02-15 19:38:55 UTC) #6
nduca
Actually, I think less typed than flags, more like Only for Options: TracingMode { UNTIL_FULL, ...
7 years, 10 months ago (2013-02-16 00:59:07 UTC) #7
dsinclair
PTAL. Converted to using the options to SetEnabled to determine if we're continuous or not. ...
7 years, 9 months ago (2013-02-25 19:04:34 UTC) #8
dsinclair
On 2013/02/25 19:04:34, dsinclair wrote: > PTAL. Converted to using the options to SetEnabled to ...
7 years, 9 months ago (2013-03-04 14:49:37 UTC) #9
nduca
few small nits lets also not malloc all the time as noted on chat https://codereview.chromium.org/12096115/diff/51001/base/debug/trace_event_impl.h ...
7 years, 9 months ago (2013-03-12 19:15:42 UTC) #10
dsinclair
PTAL, mallocs should be fixed up. https://codereview.chromium.org/12096115/diff/51001/base/debug/trace_event_impl.h File base/debug/trace_event_impl.h (right): https://codereview.chromium.org/12096115/diff/51001/base/debug/trace_event_impl.h#newcode445 base/debug/trace_event_impl.h:445: TraceBuffer* GetTraceBuffer(); On ...
7 years, 9 months ago (2013-03-13 13:49:59 UTC) #11
nduca
lgtm thank you https://codereview.chromium.org/12096115/diff/62001/base/debug/trace_event_impl.cc File base/debug/trace_event_impl.cc (right): https://codereview.chromium.org/12096115/diff/62001/base/debug/trace_event_impl.cc#newcode1154 base/debug/trace_event_impl.cc:1154: logged_events_->AddEvent(TraceEvent(it->first, a nice followup would maybe ...
7 years, 9 months ago (2013-03-13 17:04:40 UTC) #12
dsinclair
jar@ can you please take a look for base/ OWNERS. pfeldman@ can you please take ...
7 years, 9 months ago (2013-03-13 17:53:25 UTC) #13
jar (doing other things)
https://codereview.chromium.org/12096115/diff/62001/base/debug/trace_event_impl.cc File base/debug/trace_event_impl.cc (right): https://codereview.chromium.org/12096115/diff/62001/base/debug/trace_event_impl.cc#newcode120 base/debug/trace_event_impl.cc:120: int cur = logged_events_oldest_; nit: avoid abreviations such as ...
7 years, 9 months ago (2013-03-13 18:42:30 UTC) #14
pfeldman
devtools lgtm
7 years, 9 months ago (2013-03-13 18:46:35 UTC) #15
dsinclair
https://codereview.chromium.org/12096115/diff/62001/base/debug/trace_event_impl.cc File base/debug/trace_event_impl.cc (right): https://codereview.chromium.org/12096115/diff/62001/base/debug/trace_event_impl.cc#newcode120 base/debug/trace_event_impl.cc:120: int cur = logged_events_oldest_; On 2013/03/13 18:42:30, jar wrote: ...
7 years, 9 months ago (2013-03-13 19:27:27 UTC) #16
jar (doing other things)
Much better.... Please help me understand your comment below. https://codereview.chromium.org/12096115/diff/89001/base/debug/trace_event_impl.cc File base/debug/trace_event_impl.cc (right): https://codereview.chromium.org/12096115/diff/89001/base/debug/trace_event_impl.cc#newcode126 base/debug/trace_event_impl.cc:126: ...
7 years, 9 months ago (2013-03-15 19:13:30 UTC) #17
dsinclair
PTAL. https://codereview.chromium.org/12096115/diff/89001/base/debug/trace_event_impl.cc File base/debug/trace_event_impl.cc (right): https://codereview.chromium.org/12096115/diff/89001/base/debug/trace_event_impl.cc#newcode126 base/debug/trace_event_impl.cc:126: oldest_event_index_ = 0; On 2013/03/15 19:13:30, jar wrote: ...
7 years, 9 months ago (2013-03-15 19:39:55 UTC) #18
jar (doing other things)
lgtm
7 years, 9 months ago (2013-03-15 19:43:06 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dsinclair@chromium.org/12096115/96001
7 years, 9 months ago (2013-03-15 19:45:24 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dsinclair@chromium.org/12096115/106004
7 years, 9 months ago (2013-03-15 20:57:56 UTC) #21
commit-bot: I haz the power
Change committed as 188505
7 years, 9 months ago (2013-03-15 23:28:49 UTC) #22
jamesr
7 years, 9 months ago (2013-03-18 00:55:50 UTC) #23
Message was sent while issue was closed.
I think this made the Linux 64 bit builder red:

http://build.chromium.org/p/chromium/builders/Linux%20x64/builds/46911

sizes sizes
PERF_REGRESS: nacl_helper-text/text (0.08%), nacl_helper-text/text (0.08%)

Powered by Google App Engine
This is Rietveld 408576698