Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(137)

Unified Diff: src/heap/incremental-marking-job.cc

Issue 2861763002: [heap] Add GC accounting to slow allocation and incremental marking job (Closed)
Patch Set: Add includes Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/heap/heap.cc ('k') | src/heap/spaces.cc » ('j') | src/heap/spaces.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..05214d1f60c9b10061b43411cbab50c436fa5341 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);
Camillo Bruni 2017/05/03 16:25:56 we could even add a separate timer? GC_Incremeneta
Michael Lippautz 2017/05/03 16:32:00 GC_IncrementalMarkingJob (can do sweep and/or mark
+
Heap* heap = isolate()->heap();
job_->NotifyTask();
IncrementalMarking* incremental_marking = heap->incremental_marking();
« no previous file with comments | « src/heap/heap.cc ('k') | src/heap/spaces.cc » ('j') | src/heap/spaces.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698