[heap] Add scope to heap stats dumping at the end of a cycle
Bug: v8:12612 Change-Id: I791dadc925df120ef380960462382a229c9fd55a Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4208944 Reviewed-by: Michael Lippautz <mlippautz@chromium.org> Commit-Queue: Omer Katz <omerkatz@chromium.org> Cr-Commit-Position: refs/heads/main@{#85581}
This commit is contained in:
parent
cbbdf48bab
commit
3ed225c851
@ -409,6 +409,7 @@ void GCTracer::UpdateStatistics(GarbageCollector collector) {
|
||||
|
||||
if (V8_UNLIKELY(TracingFlags::gc.load(std::memory_order_relaxed) &
|
||||
v8::tracing::TracingCategoryObserver::ENABLED_BY_TRACING)) {
|
||||
TRACE_EVENT0(TRACE_GC_CATEGORIES, "V8.GC_HEAP_DUMP_STATISTICS");
|
||||
std::stringstream heap_stats;
|
||||
heap_->DumpJSONHeapStatistics(heap_stats);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user