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

Unified Diff: base/trace_event/malloc_dump_provider.h

Issue 1900223003: [tracing] Ignore tracing allocations in heap profiler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits. 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
Index: base/trace_event/malloc_dump_provider.h
diff --git a/base/trace_event/malloc_dump_provider.h b/base/trace_event/malloc_dump_provider.h
index 4746cf589680040c6692499c892c4f28504f4091..c7d965d7d3bad8325edc5f8423321b2c99e042f1 100644
--- a/base/trace_event/malloc_dump_provider.h
+++ b/base/trace_event/malloc_dump_provider.h
@@ -20,6 +20,9 @@
#define MALLOC_MEMORY_TRACING_SUPPORTED
#endif
+#define SCOPED_HEAP_PROFILER_IGNORE_MALLOC_EVENT \
Primiano Tucci (use gerrit) 2016/04/20 16:34:57 HEAP_PROFILER_SCOPED_IGNORE should be enough as a
ssid 2016/04/21 01:07:46 Yes I have already prevented the initialization of
+ base::trace_event::MallocDumpProvider::ScopedHeapProfilerIgnoreMalloc event
Primiano Tucci (use gerrit) 2016/04/20 16:34:57 Ok I know I suggested malloc_dump_provider in the
ssid 2016/04/21 01:07:46 Yes, I was expecting this comment. I still let thi
+
namespace base {
namespace trace_event {
@@ -28,6 +31,12 @@ class AllocationRegister;
// Dump provider which collects process-wide memory stats.
class BASE_EXPORT MallocDumpProvider : public MemoryDumpProvider {
public:
+ class ScopedHeapProfilerIgnoreMalloc {
Primiano Tucci (use gerrit) 2016/04/20 16:34:57 I think I'd drop Malloc from the name, for the rea
ssid 2016/04/21 01:07:46 Done.
+ public:
+ ScopedHeapProfilerIgnoreMalloc();
+ ~ScopedHeapProfilerIgnoreMalloc();
+ };
+
// Name of the allocated_objects dump. Use this to declare suballocator dumps
// from other dump providers.
static const char kAllocatedObjects[];

Powered by Google App Engine
This is Rietveld 408576698