Index: gin/v8_platform.cc |
diff --git a/gin/v8_platform.cc b/gin/v8_platform.cc |
index 556f7fc5f24f0b1c924138a6b77709e7aea5bc5d..f7e21cf217f45506d456daa199ec9f85530333a3 100644 |
--- a/gin/v8_platform.cc |
+++ b/gin/v8_platform.cc |
@@ -8,6 +8,7 @@ |
#include "base/location.h" |
#include "base/sys_info.h" |
#include "base/threading/worker_pool.h" |
+#include "base/trace_event/heap_profiler_allocation_context_tracker.h" |
#include "base/trace_event/trace_event.h" |
#include "gin/per_isolate_data.h" |
@@ -116,4 +117,14 @@ void V8Platform::UpdateTraceEventDuration(const uint8_t* category_enabled_flag, |
traceEventHandle); |
} |
+void V8Platform::PushTracingPseudoStackFrame(const char* stack_frame) { |
+ base::trace_event::AllocationContextTracker::GetInstanceForCurrentThread() |
+ ->PushPseudoStackFrame(stack_frame); |
+} |
+ |
+void V8Platform::PopTracingPseudoStackFrame(const char* stack_frame) { |
+ base::trace_event::AllocationContextTracker::GetInstanceForCurrentThread() |
+ ->PopPseudoStackFrame(stack_frame); |
+} |
+ |
} // namespace gin |