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

Issue 12302036: Add a mode flag to the tracing framework. (Closed)

Created:
7 years, 10 months ago by dsinclair
Modified:
7 years, 10 months ago
CC:
chromium-reviews, vsevik, kkania, yurys, joi+watch-content_chromium.org, robertshield, darin-cc_chromium.org, erikwright+watch_chromium.org
Visibility:
Public.

Description

Add a mode flag to the tracing framework. The mode is provided when SetEnabled is called. Currently there is only one mode which is the trace until buffer is full mode. We will be adding a continuous tracing mode which this will support. BUG=156025 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=184258

Patch Set 1 #

Total comments: 2

Patch Set 2 : TraceMode conversion to/from strings. #

Total comments: 10

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Total comments: 2

Patch Set 5 : Spelling fix in content/public/browser. #

Total comments: 14

Patch Set 6 : Change int's to TraceLog::Options. #

Patch Set 7 : base/ review cleanups. #

Total comments: 2

Patch Set 8 : Add comment in base/. #

Patch Set 9 : Merge with master. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+219 lines, -70 lines) Patch
M base/debug/trace_event_impl.h View 1 2 3 4 5 5 chunks +17 lines, -4 lines 0 comments Download
M base/debug/trace_event_impl.cc View 1 2 3 4 5 6 7 8 chunks +43 lines, -6 lines 0 comments Download
M base/debug/trace_event_unittest.cc View 1 2 3 4 5 6 7 8 15 chunks +45 lines, -29 lines 0 comments Download
M base/test/trace_event_analyzer_unittest.cc View 1 2 1 chunk +6 lines, -2 lines 0 comments Download
M chrome/browser/automation/automation_provider.cc View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M chrome/test/base/tracing.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M components/tracing/child_trace_message_filter.h View 2 1 chunk +2 lines, -1 line 0 comments Download
M components/tracing/child_trace_message_filter.cc View 1 2 3 4 5 2 chunks +6 lines, -3 lines 0 comments Download
M components/tracing/tracing_messages.h View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M content/app/android/library_loader_hooks.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M content/app/content_main_runner.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/android/tracing_intent_handler.cc View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M content/browser/devtools/devtools_tracing_handler.h View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/devtools/devtools_tracing_handler.cc View 1 2 3 4 5 3 chunks +34 lines, -1 line 0 comments Download
M content/browser/tracing/trace_controller_impl.h View 1 2 3 4 5 2 chunks +5 lines, -2 lines 0 comments Download
M content/browser/tracing/trace_controller_impl.cc View 1 2 3 4 5 4 chunks +15 lines, -7 lines 0 comments Download
M content/browser/tracing/trace_message_filter.h View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/tracing/trace_message_filter.cc View 1 2 3 4 5 1 chunk +5 lines, -4 lines 0 comments Download
M content/browser/tracing/tracing_ui.cc View 1 2 3 4 5 2 chunks +13 lines, -2 lines 0 comments Download
M content/public/browser/trace_controller.h View 1 2 3 4 5 2 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 28 (0 generated)
dsinclair
Nat, Here is my first pass at adding the mode to SetEnabled(). Can you please ...
7 years, 10 months ago (2013-02-19 23:02:32 UTC) #1
pfeldman
https://codereview.chromium.org/12302036/diff/1/content/browser/devtools/devtools_tracing_handler.cc File content/browser/devtools/devtools_tracing_handler.cc (right): https://codereview.chromium.org/12302036/diff/1/content/browser/devtools/devtools_tracing_handler.cc#newcode71 content/browser/devtools/devtools_tracing_handler.cc:71: params->GetInteger(kTraceModeParam, &mode_); You should check for it returning value ...
7 years, 10 months ago (2013-02-20 09:33:38 UTC) #2
dsinclair
https://codereview.chromium.org/12302036/diff/1/content/browser/devtools/devtools_tracing_handler.cc File content/browser/devtools/devtools_tracing_handler.cc (right): https://codereview.chromium.org/12302036/diff/1/content/browser/devtools/devtools_tracing_handler.cc#newcode71 content/browser/devtools/devtools_tracing_handler.cc:71: params->GetInteger(kTraceModeParam, &mode_); Done. I put the conversion in the ...
7 years, 10 months ago (2013-02-20 20:36:12 UTC) #3
nduca
https://codereview.chromium.org/12302036/diff/4001/base/debug/trace_event_impl.h File base/debug/trace_event_impl.h (right): https://codereview.chromium.org/12302036/diff/4001/base/debug/trace_event_impl.h#newcode173 base/debug/trace_event_impl.h:173: enum TraceMode { I think TraceMode -> TraceOptions? This ...
7 years, 10 months ago (2013-02-21 05:40:16 UTC) #4
pfeldman
https://codereview.chromium.org/12302036/diff/4001/content/browser/tracing/tracing_ui.cc File content/browser/tracing/tracing_ui.cc (right): https://codereview.chromium.org/12302036/diff/4001/content/browser/tracing/tracing_ui.cc#newcode391 content/browser/tracing/tracing_ui.cc:391: mode = base::debug::TraceLog::TraceModeFromString(mode_); Yep, you should have local conversion ...
7 years, 10 months ago (2013-02-21 05:49:23 UTC) #5
dsinclair
https://codereview.chromium.org/12302036/diff/4001/base/debug/trace_event_impl.h File base/debug/trace_event_impl.h (right): https://codereview.chromium.org/12302036/diff/4001/base/debug/trace_event_impl.h#newcode173 base/debug/trace_event_impl.h:173: enum TraceMode { On 2013/02/21 05:40:16, nduca wrote: > ...
7 years, 10 months ago (2013-02-21 16:26:04 UTC) #6
pfeldman
https://codereview.chromium.org/12302036/diff/8001/content/browser/devtools/devtools_tracing_handler.cc File content/browser/devtools/devtools_tracing_handler.cc (right): https://codereview.chromium.org/12302036/diff/8001/content/browser/devtools/devtools_tracing_handler.cc#newcode72 content/browser/devtools/devtools_tracing_handler.cc:72: if (*iter == kRecordUntilFull) { Do you need to ...
7 years, 10 months ago (2013-02-21 16:33:05 UTC) #7
dsinclair
https://codereview.chromium.org/12302036/diff/8001/content/browser/devtools/devtools_tracing_handler.cc File content/browser/devtools/devtools_tracing_handler.cc (right): https://codereview.chromium.org/12302036/diff/8001/content/browser/devtools/devtools_tracing_handler.cc#newcode72 content/browser/devtools/devtools_tracing_handler.cc:72: if (*iter == kRecordUntilFull) { On 2013/02/21 16:33:05, pfeldman ...
7 years, 10 months ago (2013-02-21 16:35:59 UTC) #8
pfeldman
devtools lgtm
7 years, 10 months ago (2013-02-21 16:45:44 UTC) #9
dsinclair
jar@ can you please take a look for base/ OWNERS. phajdan.jr@ can you please take ...
7 years, 10 months ago (2013-02-22 15:10:08 UTC) #10
Jói
LGTM for content/public with one nit. https://codereview.chromium.org/12302036/diff/4002/content/public/browser/trace_controller.h File content/public/browser/trace_controller.h (right): https://codereview.chromium.org/12302036/diff/4002/content/public/browser/trace_controller.h#newcode39 content/public/browser/trace_controller.h:39: // |mode| is ...
7 years, 10 months ago (2013-02-22 15:11:30 UTC) #11
agl
content/app LGTM.
7 years, 10 months ago (2013-02-22 15:15:03 UTC) #12
dsinclair
https://codereview.chromium.org/12302036/diff/4002/content/public/browser/trace_controller.h File content/public/browser/trace_controller.h (right): https://codereview.chromium.org/12302036/diff/4002/content/public/browser/trace_controller.h#newcode39 content/public/browser/trace_controller.h:39: // |mode| is the tracing mode begin used. On ...
7 years, 10 months ago (2013-02-22 15:16:00 UTC) #13
nduca
You'll need to not passing around ints as options, but rather the Options type. Use ...
7 years, 10 months ago (2013-02-22 18:38:12 UTC) #14
Yaron
lgtm for content/browser/android
7 years, 10 months ago (2013-02-22 18:48:52 UTC) #15
dsinclair
https://codereview.chromium.org/12302036/diff/9025/base/debug/trace_event_impl.h File base/debug/trace_event_impl.h (right): https://codereview.chromium.org/12302036/diff/9025/base/debug/trace_event_impl.h#newcode214 base/debug/trace_event_impl.h:214: int GetTraceOptions() { return trace_options_; } On 2013/02/22 18:38:13, ...
7 years, 10 months ago (2013-02-22 19:16:02 UTC) #16
nduca
lgtm
7 years, 10 months ago (2013-02-22 19:17:37 UTC) #17
jar (doing other things)
Comments on Base for patch set 5 https://codereview.chromium.org/12302036/diff/9025/base/debug/trace_event_impl.cc File base/debug/trace_event_impl.cc (right): https://codereview.chromium.org/12302036/diff/9025/base/debug/trace_event_impl.cc#newcode359 base/debug/trace_event_impl.cc:359: std::vector<std::string>::iterator iter; ...
7 years, 10 months ago (2013-02-22 19:31:27 UTC) #18
nduca
More options are coming the second this lands, so I would argue not too much ...
7 years, 10 months ago (2013-02-22 19:35:49 UTC) #19
dsinclair
https://codereview.chromium.org/12302036/diff/9025/base/debug/trace_event_impl.cc File base/debug/trace_event_impl.cc (right): https://codereview.chromium.org/12302036/diff/9025/base/debug/trace_event_impl.cc#newcode359 base/debug/trace_event_impl.cc:359: std::vector<std::string>::iterator iter; On 2013/02/22 19:31:28, jar wrote: > nit: ...
7 years, 10 months ago (2013-02-22 20:01:42 UTC) #20
jar (doing other things)
Patch set 7 base LGTM with the nit below. If you are about to land ...
7 years, 10 months ago (2013-02-22 20:15:57 UTC) #21
dsinclair
https://codereview.chromium.org/12302036/diff/12023/base/debug/trace_event_impl.cc File base/debug/trace_event_impl.cc (right): https://codereview.chromium.org/12302036/diff/12023/base/debug/trace_event_impl.cc#newcode370 base/debug/trace_event_impl.cc:370: if (!(ret & RECORD_UNTIL_FULL)) On 2013/02/22 20:15:57, jar wrote: ...
7 years, 10 months ago (2013-02-22 20:21:13 UTC) #22
dsinclair
jam@ can you please take a look for chrome/browser/automation OWNERS. sky@ can you please take ...
7 years, 10 months ago (2013-02-22 20:30:33 UTC) #23
jam
On 2013/02/22 20:30:33, dsinclair wrote: > jam@ can you please take a look for chrome/browser/automation ...
7 years, 10 months ago (2013-02-22 20:56:27 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dsinclair@chromium.org/12302036/18001
7 years, 10 months ago (2013-02-22 20:58:16 UTC) #25
commit-bot: I haz the power
Failed to apply patch for base/debug/trace_event_unittest.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 10 months ago (2013-02-22 20:58:21 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dsinclair@chromium.org/12302036/7019
7 years, 10 months ago (2013-02-22 21:08:35 UTC) #27
commit-bot: I haz the power
7 years, 10 months ago (2013-02-23 02:09:55 UTC) #28
Message was sent while issue was closed.
Change committed as 184258

Powered by Google App Engine
This is Rietveld 408576698