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

Issue 11802005: Enable overlapping, usage counted SetEnabled()/SetDisabled() for TraceLog (Closed)

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

Description

Enable overlapping, usage counted SetEnabled()/SetDisabled() for TraceLog This allows multiple clients to enable/disable trace events collection independently on each other. BUG=none TEST=TraceEventTestFixture.TraceEnableDisable Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=177135

Patch Set 1 #

Total comments: 1

Patch Set 2 : Merge enabled categories upon nested calls to TaceLog::SetEnabled() #

Patch Set 3 : fixed fatal warning on win #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -11 lines) Patch
M base/debug/trace_event_impl.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M base/debug/trace_event_impl.cc View 1 7 chunks +21 lines, -7 lines 0 comments Download
M base/debug/trace_event_unittest.cc View 1 4 chunks +58 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
caseq1
7 years, 11 months ago (2013-01-08 14:08:14 UTC) #1
nduca
https://codereview.chromium.org/11802005/diff/1/base/debug/trace_event_unittest.cc File base/debug/trace_event_unittest.cc (right): https://codereview.chromium.org/11802005/diff/1/base/debug/trace_event_unittest.cc#newcode1346 base/debug/trace_event_unittest.cc:1346: ManualTestSetUp(); How does enabling work with çategories? I think ...
7 years, 11 months ago (2013-01-08 21:27:39 UTC) #2
caseq
On 2013/01/08 21:27:39, nduca wrote: > https://codereview.chromium.org/11802005/diff/1/base/debug/trace_event_unittest.cc > File base/debug/trace_event_unittest.cc (right): > How does enabling ...
7 years, 11 months ago (2013-01-08 22:23:38 UTC) #3
nduca
I'm fine with anything that is self consistent. It seems to me like category-level is ...
7 years, 11 months ago (2013-01-08 23:34:05 UTC) #4
caseq1
On 2013/01/08 23:34:05, nduca wrote: > I'm fine with anything that is self consistent. It ...
7 years, 11 months ago (2013-01-09 20:34:35 UTC) #5
nduca
That seems fine. Another option, I wonder, is maybe just instead just make things fail ...
7 years, 11 months ago (2013-01-09 20:41:45 UTC) #6
caseq1
On 2013/01/09 20:41:45, nduca wrote: > That seems fine. Another option, I wonder, is maybe ...
7 years, 11 months ago (2013-01-10 16:49:45 UTC) #7
nduca
lgtm thank you for giving this so much thought.
7 years, 11 months ago (2013-01-10 19:58:53 UTC) #8
nduca
+jar for owners
7 years, 11 months ago (2013-01-10 20:00:00 UTC) #9
jar (doing other things)
7 years, 11 months ago (2013-01-12 15:46:59 UTC) #10
Code looks reasoable... but mostly rubber stamp LGTM

Powered by Google App Engine
This is Rietveld 408576698