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

Side by Side Diff: base/trace_event/heap_profiler.cc

Issue 1900223003: [tracing] Ignore tracing allocations in heap profiler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make heap_profiler.h and rebase 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 unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698