Chromium Code Reviews| 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[]; |