Index: src/heap/gc-tracer.cc |
diff --git a/src/heap/gc-tracer.cc b/src/heap/gc-tracer.cc |
index 0bd12cdb5ba1ce60f724e586fe19c04d96a0026d..a35872dc47e1380311f19d1415a22292505169db 100644 |
--- a/src/heap/gc-tracer.cc |
+++ b/src/heap/gc-tracer.cc |
@@ -587,5 +587,8 @@ double GCTracer::AverageSurvivalRate() const { |
bool GCTracer::SurvivalEventsRecorded() const { |
return survival_events_.size() > 0; |
} |
+ |
+ |
+void GCTracer::ResetSurvivalEvents() { survival_events_.reset(); } |
} |
} // namespace v8::internal |