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

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

Issue 1828743002: Remove unused GcTracer functions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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') | no next file » | 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 e3828e58efdf6be4404ecd4ce84910d568be3870..af9470e40725a306e48f493e8dd498b9d7caef79 100644
--- a/src/heap/gc-tracer.cc
+++ b/src/heap/gc-tracer.cc
@@ -697,46 +697,6 @@ double GCTracer::MaxDuration(const EventBuffer& events) const {
}
-double GCTracer::MeanIncrementalMarkingDuration() const {
- if (cumulative_incremental_marking_steps_ == 0) return 0.0;
-
- // We haven't completed an entire round of incremental marking, yet.
- // Use data from GCTracer instead of data from event buffers.
- if (incremental_mark_compactor_events_.empty()) {
- return cumulative_incremental_marking_duration_ /
- cumulative_incremental_marking_steps_;
- }
-
- int steps = 0;
- double durations = 0.0;
- EventBuffer::const_iterator iter = incremental_mark_compactor_events_.begin();
- while (iter != incremental_mark_compactor_events_.end()) {
- steps += iter->incremental_marking_steps;
- durations += iter->incremental_marking_duration;
- ++iter;
- }
-
- if (steps == 0) return 0.0;
-
- return durations / steps;
-}
-
-
-double GCTracer::MaxIncrementalMarkingDuration() const {
- // We haven't completed an entire round of incremental marking, yet.
- // Use data from GCTracer instead of data from event buffers.
- if (incremental_mark_compactor_events_.empty())
- return longest_incremental_marking_step_;
-
- double max_duration = 0.0;
- EventBuffer::const_iterator iter = incremental_mark_compactor_events_.begin();
- while (iter != incremental_mark_compactor_events_.end())
- max_duration = Max(iter->longest_incremental_marking_step, max_duration);
-
- return max_duration;
-}
-
-
intptr_t GCTracer::IncrementalMarkingSpeedInBytesPerMillisecond() const {
if (cumulative_incremental_marking_duration_ == 0.0) return 0;
« no previous file with comments | « src/heap/gc-tracer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698