Index: src/heap/incremental-marking-job.cc |
diff --git a/src/heap/incremental-marking-job.cc b/src/heap/incremental-marking-job.cc |
index 393b9cce7eeace05b893679d448bfb54490261df..de7264792ac37cd1b6b4c6f99f606300ee18cf61 100644 |
--- a/src/heap/incremental-marking-job.cc |
+++ b/src/heap/incremental-marking-job.cc |
@@ -10,6 +10,7 @@ |
#include "src/heap/incremental-marking.h" |
#include "src/isolate.h" |
#include "src/v8.h" |
+#include "src/vm-state-inl.h" |
namespace v8 { |
namespace internal { |
@@ -42,6 +43,9 @@ void IncrementalMarkingJob::Task::Step(Heap* heap) { |
} |
void IncrementalMarkingJob::Task::RunInternal() { |
+ VMState<GC> state(isolate()); |
+ RuntimeCallTimerScope(isolate(), &RuntimeCallStats::GC_IncrementalMarkingJob); |
+ |
Heap* heap = isolate()->heap(); |
job_->NotifyTask(); |
IncrementalMarking* incremental_marking = heap->incremental_marking(); |