| Index: src/heap/heap.cc
|
| diff --git a/src/heap/heap.cc b/src/heap/heap.cc
|
| index 92516ece91cf7b2514ae080d9d99b99bffcc184a..c1bf3edbacba4e4267c4eca55855718008fec4e7 100644
|
| --- a/src/heap/heap.cc
|
| +++ b/src/heap/heap.cc
|
| @@ -896,7 +896,8 @@ void Heap::CollectAllAvailableGarbage(GarbageCollectionReason gc_reason) {
|
| if (gc_reason == GarbageCollectionReason::kLastResort) {
|
| InvokeOutOfMemoryCallback();
|
| }
|
| - RuntimeCallTimerScope(isolate(), &RuntimeCallStats::GC_AllAvailableGarbage);
|
| + RuntimeCallTimerScope runtime_timer(
|
| + isolate(), &RuntimeCallStats::GC_AllAvailableGarbage);
|
| if (isolate()->concurrent_recompilation_enabled()) {
|
| // The optimizing compiler may be unnecessarily holding on to memory.
|
| DisallowHeapAllocation no_recursive_gc;
|
| @@ -979,7 +980,7 @@ bool Heap::CollectGarbage(GarbageCollector collector,
|
| const v8::GCCallbackFlags gc_callback_flags) {
|
| // The VM is in the GC state until exiting this function.
|
| VMState<GC> state(isolate());
|
| - RuntimeCallTimerScope(isolate(), &RuntimeCallStats::GC);
|
| + RuntimeCallTimerScope runtime_timer(isolate(), &RuntimeCallStats::GC);
|
|
|
| #ifdef DEBUG
|
| // Reset the allocation timeout to the GC interval, but make sure to
|
| @@ -1430,7 +1431,8 @@ bool Heap::PerformGarbageCollection(
|
|
|
|
|
| void Heap::CallGCPrologueCallbacks(GCType gc_type, GCCallbackFlags flags) {
|
| - RuntimeCallTimerScope(isolate(), &RuntimeCallStats::GCPrologueCallback);
|
| + RuntimeCallTimerScope runtime_timer(isolate(),
|
| + &RuntimeCallStats::GCPrologueCallback);
|
| for (int i = 0; i < gc_prologue_callbacks_.length(); ++i) {
|
| if (gc_type & gc_prologue_callbacks_[i].gc_type) {
|
| if (!gc_prologue_callbacks_[i].pass_isolate) {
|
| @@ -1448,7 +1450,8 @@ void Heap::CallGCPrologueCallbacks(GCType gc_type, GCCallbackFlags flags) {
|
|
|
| void Heap::CallGCEpilogueCallbacks(GCType gc_type,
|
| GCCallbackFlags gc_callback_flags) {
|
| - RuntimeCallTimerScope(isolate(), &RuntimeCallStats::GCEpilogueCallback);
|
| + RuntimeCallTimerScope runtime_timer(isolate(),
|
| + &RuntimeCallStats::GCEpilogueCallback);
|
| for (int i = 0; i < gc_epilogue_callbacks_.length(); ++i) {
|
| if (gc_type & gc_epilogue_callbacks_[i].gc_type) {
|
| if (!gc_epilogue_callbacks_[i].pass_isolate) {
|
|
|