OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "base/trace_event/heap_profiler.h" |
| 6 |
| 7 #include "base/compiler_specific.h" |
| 8 |
| 9 namespace trace_event_internal { |
| 10 |
| 11 HeapProfilerScopedIgnore::HeapProfilerScopedIgnore() {} |
| 12 |
| 13 HeapProfilerScopedIgnore::~HeapProfilerScopedIgnore() { |
| 14 if (UNLIKELY( |
| 15 base::trace_event::AllocationContextTracker::capture_enabled())) { |
| 16 // The corresponding begin_ignore_scope is defined in the definition of |
| 17 // HEAP_PROFILER_SCOPED_IGNORE in the header. |
| 18 base::trace_event::AllocationContextTracker::GetInstanceForCurrentThread() |
| 19 ->end_ignore_scope(); |
| 20 } |
| 21 } |
| 22 |
| 23 } // namespace trace_event_internal |
OLD | NEW |