| Index: third_party/WebKit/Source/platform/EventTracer.cpp
|
| diff --git a/third_party/WebKit/Source/platform/EventTracer.cpp b/third_party/WebKit/Source/platform/EventTracer.cpp
|
| index 94015e145f7e75376ea0a55f43d75c8b2c0e9736..e3b93af2a440b89aba30b8448927f431fdf5e6c3 100644
|
| --- a/third_party/WebKit/Source/platform/EventTracer.cpp
|
| +++ b/third_party/WebKit/Source/platform/EventTracer.cpp
|
| @@ -31,6 +31,7 @@
|
| #include "platform/EventTracer.h"
|
|
|
| #include "base/time/time.h"
|
| +#include "base/trace_event/heap_profiler_allocation_context_tracker.h"
|
| #include "base/trace_event/trace_event.h"
|
| #include "base/trace_event/trace_event_argument.h"
|
| #include "platform/TracedValue.h"
|
| @@ -119,4 +120,16 @@ double EventTracer::systemTraceTime()
|
| return (base::TimeTicks::Now() - base::TimeTicks()).InSecondsF();
|
| }
|
|
|
| +void EventTracer::pushPseudoStackFrame(const char* stackFrame)
|
| +{
|
| + base::trace_event::AllocationContextTracker::GetInstanceForCurrentThread()
|
| + ->PushPseudoStackFrame(stackFrame);
|
| +}
|
| +
|
| +void EventTracer::popPseudoStackFrame(const char* stackFrame)
|
| +{
|
| + base::trace_event::AllocationContextTracker::GetInstanceForCurrentThread()
|
| + ->PopPseudoStackFrame(stackFrame);
|
| +}
|
| +
|
| } // namespace blink
|
|
|