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

Unified Diff: base/trace_event/trace_event.h

Issue 1916033002: Revert of [tracing] Add native allocation tracing mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « base/trace_event/memory_dump_manager.cc ('k') | base/trace_event/trace_log.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/trace_event/trace_event.h
diff --git a/base/trace_event/trace_event.h b/base/trace_event/trace_event.h
index 542537d7ed96ebf24c2f6d2ad409519404bacdc6..ef452f642f2ee7f419d0f213a77180a05accbc7d 100644
--- a/base/trace_event/trace_event.h
+++ b/base/trace_event/trace_event.h
@@ -1056,21 +1056,17 @@
public:
explicit ScopedTaskExecutionEvent(const char* task_context)
: context_(task_context) {
- using base::trace_event::AllocationContextTracker;
if (UNLIKELY(
- AllocationContextTracker::capture_mode() !=
- AllocationContextTracker::CaptureMode::DISABLED)) {
- AllocationContextTracker::GetInstanceForCurrentThread()
+ base::trace_event::AllocationContextTracker::capture_enabled())) {
+ base::trace_event::AllocationContextTracker::GetInstanceForCurrentThread()
->PushCurrentTaskContext(context_);
}
}
~ScopedTaskExecutionEvent() {
- using base::trace_event::AllocationContextTracker;
if (UNLIKELY(
- AllocationContextTracker::capture_mode() !=
- AllocationContextTracker::CaptureMode::DISABLED)) {
- AllocationContextTracker::GetInstanceForCurrentThread()
+ base::trace_event::AllocationContextTracker::capture_enabled())) {
+ base::trace_event::AllocationContextTracker::GetInstanceForCurrentThread()
->PopCurrentTaskContext(context_);
}
}
« no previous file with comments | « base/trace_event/memory_dump_manager.cc ('k') | base/trace_event/trace_log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698