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

Unified Diff: src/heap/gc-tracer.cc

Issue 1851103002: Trace events corresponding to GCTracer scopes. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address comment Created 4 years, 8 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 | « src/heap/gc-tracer.h ('k') | src/heap/heap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/gc-tracer.cc
diff --git a/src/heap/gc-tracer.cc b/src/heap/gc-tracer.cc
index 880f8ef98c6e023caf6b4c65dcd6bac9c3e2a310..3c46f5292dfdd2d37e39e2da0e35c52627c6ffeb 100644
--- a/src/heap/gc-tracer.cc
+++ b/src/heap/gc-tracer.cc
@@ -44,6 +44,18 @@ GCTracer::Scope::~Scope() {
}
}
+const char* GCTracer::Scope::Name(ScopeId id) {
+#define CASE(scope) \
+ case Scope::scope: \
+ return "V8.GC_" #scope;
+ switch (id) {
+ TRACER_SCOPES(CASE)
+ case Scope::NUMBER_OF_SCOPES:
+ break;
+ }
+#undef CASE
+ return "(unknown)";
+}
GCTracer::Event::Event(Type type, const char* gc_reason,
const char* collector_reason)
« no previous file with comments | « src/heap/gc-tracer.h ('k') | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698