Chromium Code Reviews| 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..3ace9e977564ab8f36d4f0e3bfe5b75de0ba04f1 100644 |
| --- a/base/trace_event/trace_event.h |
| +++ b/base/trace_event/trace_event.h |
| @@ -18,7 +18,7 @@ |
| #include "base/macros.h" |
| #include "base/time/time.h" |
| #include "base/trace_event/common/trace_event_common.h" |
| -#include "base/trace_event/heap_profiler_allocation_context_tracker.h" |
| +#include "base/trace_event/heap_profiler.h" // For SCOPED_TASK_EXECUTION |
|
oystein (OOO til 10th of July)
2016/05/12 19:56:50
I don't think we normally specify reasons for incl
ssid
2016/05/12 22:09:42
I only added this because in this patch the file i
|
| #include "base/trace_event/trace_event_system_stats_monitor.h" |
| #include "base/trace_event/trace_log.h" |
| #include "build/build_config.h" |
| @@ -211,10 +211,6 @@ TRACE_EVENT_API_CLASS_EXPORT extern \ |
| #define TRACE_EVENT_API_THREAD_BUCKET(thread_bucket) \ |
| g_trace_state[thread_bucket] |
| -// Scoped tracker for task execution context in the heap profiler. |
| -#define TRACE_EVENT_API_SCOPED_TASK_EXECUTION_EVENT \ |
| - trace_event_internal::ScopedTaskExecutionEvent |
| - |
| //////////////////////////////////////////////////////////////////////////////// |
| // Implementation detail: trace event macros create temporary variables |
| @@ -1050,35 +1046,6 @@ class TraceEventSamplingStateScope { |
| const char* previous_state_; |
| }; |
| -// ScopedTaskExecutionEvent records the current task's context in the heap |
| -// profiler. |
| -class ScopedTaskExecutionEvent { |
| - 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() |
| - ->PushCurrentTaskContext(context_); |
| - } |
| - } |
| - |
| - ~ScopedTaskExecutionEvent() { |
| - using base::trace_event::AllocationContextTracker; |
| - if (UNLIKELY( |
| - AllocationContextTracker::capture_mode() != |
| - AllocationContextTracker::CaptureMode::DISABLED)) { |
| - AllocationContextTracker::GetInstanceForCurrentThread() |
| - ->PopCurrentTaskContext(context_); |
| - } |
| - } |
| - |
| - private: |
| - const char* context_; |
| -}; |
| - |
| } // namespace trace_event_internal |
| namespace base { |