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

Unified Diff: base/trace_event/blame_context.cc

Issue 1837013003: [tracing] Add support for profiling trace events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ipc_trace
Patch Set: nits. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: base/trace_event/blame_context.cc
diff --git a/base/trace_event/blame_context.cc b/base/trace_event/blame_context.cc
index 0bf78962d6ab559bba3aa657767b20bd652fe05c..4e9cc348644d1e8ce95558f2cc91c0e1a1293fdd 100644
--- a/base/trace_event/blame_context.cc
+++ b/base/trace_event/blame_context.cc
@@ -55,7 +55,7 @@ void BlameContext::Leave() {
void BlameContext::TakeSnapshot() {
DCHECK(WasInitialized());
- if (!*category_group_enabled_)
+ if (!(*category_group_enabled_ & TraceLog::ENABLED_FOR_NON_PROFILING_MODE))
return;
scoped_ptr<trace_event::TracedValue> snapshot(new trace_event::TracedValue);
AsValueInto(snapshot.get());
« no previous file with comments | « no previous file | base/trace_event/heap_profiler_allocation_context_tracker_unittest.cc » ('j') | base/trace_event/trace_log.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698