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

Unified Diff: cc/base/rolling_time_delta_history.cc

Issue 833283003: Reland "Add new latency_info for tracking browser composite time." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move to RWHLatencyTracker Created 5 years, 11 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
Index: cc/base/rolling_time_delta_history.cc
diff --git a/cc/base/rolling_time_delta_history.cc b/cc/base/rolling_time_delta_history.cc
index db04f586b0bee590a2dbec07fbd44957dbd3a7fd..0f95cc5fe5270fec4ffc41b3b3584b6b9cd781d3 100644
--- a/cc/base/rolling_time_delta_history.cc
+++ b/cc/base/rolling_time_delta_history.cc
@@ -26,6 +26,10 @@ void RollingTimeDeltaHistory::InsertSample(base::TimeDelta time) {
chronological_sample_deque_.push_back(it);
}
+size_t RollingTimeDeltaHistory::SampleCount() {
+ return sample_set_.size();
+}
+
void RollingTimeDeltaHistory::Clear() {
chronological_sample_deque_.clear();
sample_set_.clear();

Powered by Google App Engine
This is Rietveld 408576698