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

Unified Diff: src/heap/gc-tracer.cc

Issue 1999753002: [heap] Harden heap-related cctests (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix for win Created 4 years, 7 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/gc-tracer.h ('k') | src/heap/spaces-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/gc-tracer.cc
diff --git a/src/heap/gc-tracer.cc b/src/heap/gc-tracer.cc
index 4bae0a4495dd0d77f9f733490e367074addb8a83..2b1f06acd7dbf1d54f8a2ca0bb96240e467a9adc 100644
--- a/src/heap/gc-tracer.cc
+++ b/src/heap/gc-tracer.cc
@@ -135,6 +135,26 @@ GCTracer::GCTracer(Heap* heap)
previous_ = previous_incremental_mark_compactor_event_ = current_;
}
+void GCTracer::ResetForTesting() {
+ cumulative_incremental_marking_steps_ = 0.0;
+ cumulative_incremental_marking_bytes_ = 0.0;
+ cumulative_incremental_marking_duration_ = 0.0;
+ cumulative_pure_incremental_marking_duration_ = 0.0;
+ longest_incremental_marking_step_ = 0.0;
+ cumulative_incremental_marking_finalization_steps_ = 0.0;
+ cumulative_incremental_marking_finalization_duration_ = 0.0;
+ longest_incremental_marking_finalization_step_ = 0.0;
+ cumulative_marking_duration_ = 0.0;
+ cumulative_sweeping_duration_ = 0.0;
+ allocation_time_ms_ = 0.0;
+ new_space_allocation_counter_bytes_ = 0.0;
+ old_generation_allocation_counter_bytes_ = 0.0;
+ allocation_duration_since_gc_ = 0.0;
+ new_space_allocation_in_bytes_since_gc_ = 0.0;
+ old_generation_allocation_in_bytes_since_gc_ = 0.0;
+ combined_mark_compact_speed_cache_ = 0.0;
+ start_counter_ = 0;
+}
void GCTracer::Start(GarbageCollector collector, const char* gc_reason,
const char* collector_reason) {
« no previous file with comments | « src/heap/gc-tracer.h ('k') | src/heap/spaces-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698