Chromium Code Reviews| Index: src/heap/gc-tracer.cc |
| diff --git a/src/heap/gc-tracer.cc b/src/heap/gc-tracer.cc |
| index 880f8ef98c6e023caf6b4c65dcd6bac9c3e2a310..f618e186385939312cfc86609d98492fea818762 100644 |
| --- a/src/heap/gc-tracer.cc |
| +++ b/src/heap/gc-tracer.cc |
| @@ -44,6 +44,17 @@ GCTracer::Scope::~Scope() { |
| } |
| } |
| +const char* GCTracer::Scope::Name(ScopeId id) { |
| +#define CASE(scope) \ |
|
Michael Lippautz
2016/04/04 09:49:39
undef CASE somewhere?
ulan
2016/04/04 09:58:42
Done.
|
| + case Scope::scope: \ |
| + return "V8.GC_" #scope; |
| + switch (id) { |
| + TRACER_SCOPES(CASE) |
| + case Scope::NUMBER_OF_SCOPES: |
| + break; |
| + } |
| + return "(unknown)"; |
| +} |
| GCTracer::Event::Event(Type type, const char* gc_reason, |
| const char* collector_reason) |