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

Unified Diff: third_party/WebKit/Source/platform/EventTracer.cpp

Issue 1850603002: [tracing] Use trace event profiling for heap profiling Base URL: https://chromium.googlesource.com/chromium/src.git@all_categories
Patch Set: Created 4 years, 9 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
« no previous file with comments | « third_party/WebKit/Source/platform/EventTracer.h ('k') | third_party/WebKit/Source/platform/TraceEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « third_party/WebKit/Source/platform/EventTracer.h ('k') | third_party/WebKit/Source/platform/TraceEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698