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

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

Issue 1900223003: [tracing] Ignore tracing allocations in heap profiler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes. 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_scoped_ignore.h"
6
7 namespace base {
8 namespace trace_event {
9
10 HeapProfilerScopedIgnore::HeapProfilerScopedIgnore() {}
11
12 HeapProfilerScopedIgnore::~HeapProfilerScopedIgnore() {
Primiano Tucci (use gerrit) 2016/04/21 19:47:32 I'd just add a comment saying: The corresponding
ssid 2016/04/22 04:57:12 Done.
13 if (UNLIKELY(AllocationContextTracker::capture_enabled())) {
14 AllocationContextTracker::GetInstanceForCurrentThread()->end_ignore_scope();
15 }
16 }
17
18 } // namespace trace_event
19 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698