| Index: base/trace_event/trace_buffer.cc
|
| diff --git a/base/trace_event/trace_buffer.cc b/base/trace_event/trace_buffer.cc
|
| index b9f80b27b6924daa5f62874a4104d3f49ed0c915..852af722cdb85f3b3688468e53db47778d1961af 100644
|
| --- a/base/trace_event/trace_buffer.cc
|
| +++ b/base/trace_event/trace_buffer.cc
|
| @@ -9,6 +9,7 @@
|
| #include <vector>
|
|
|
| #include "base/macros.h"
|
| +#include "base/trace_event/heap_profiler_scoped_ignore.h"
|
| #include "base/trace_event/trace_event_impl.h"
|
|
|
| namespace base {
|
| @@ -31,6 +32,8 @@ class TraceBufferRingBuffer : public TraceBuffer {
|
| }
|
|
|
| std::unique_ptr<TraceBufferChunk> GetChunk(size_t* index) override {
|
| + HEAP_PROFILER_SCOPED_IGNORE;
|
| +
|
| // Because the number of threads is much less than the number of chunks,
|
| // the queue should never be empty.
|
| DCHECK(!QueueIsEmpty());
|
| @@ -158,6 +161,8 @@ class TraceBufferVector : public TraceBuffer {
|
| }
|
|
|
| std::unique_ptr<TraceBufferChunk> GetChunk(size_t* index) override {
|
| + HEAP_PROFILER_SCOPED_IGNORE;
|
| +
|
| // This function may be called when adding normal events or indirectly from
|
| // AddMetadataEventsWhileLocked(). We can not DECHECK(!IsFull()) because we
|
| // have to add the metadata events and flush thread-local buffers even if
|
|
|