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

Unified Diff: cc/debug/rendering_stats.cc

Issue 25284005: cc: Add best_record_time to rendering stats. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 7 years, 3 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 | « cc/debug/rendering_stats.h ('k') | cc/debug/rendering_stats_instrumentation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/debug/rendering_stats.cc
diff --git a/cc/debug/rendering_stats.cc b/cc/debug/rendering_stats.cc
index 64cf69e0fe399b6adbf5d7f1f70f6415b9a0f024..f8a1c66085330ccbe720ebc638f7ec6144d4fb71 100644
--- a/cc/debug/rendering_stats.cc
+++ b/cc/debug/rendering_stats.cc
@@ -37,6 +37,8 @@ void RenderingStats::EnumerateFields(Enumerator* enumerator) const {
main_stats.paint_time.InSecondsF());
enumerator->AddDouble("totalRecordTimeInSeconds",
main_stats.record_time.InSecondsF());
+ enumerator->AddDouble("totalBestRecordTimeInSeconds",
+ main_stats.best_record_time.InSecondsF());
enumerator->AddDouble("totalCommitTimeInSeconds",
main_stats.commit_time.InSecondsF());
enumerator->AddInt64("totalCommitCount", main_stats.commit_count);
@@ -93,6 +95,8 @@ MainThreadRenderingStats::AsTraceableData() const {
paint_time.InSecondsF());
record_data->SetDouble("record_time",
record_time.InSecondsF());
+ record_data->SetDouble("best_record_time",
+ best_record_time.InSecondsF());
record_data->SetDouble("commit_time",
commit_time.InSecondsF());
record_data->SetInteger("commit_count",
@@ -160,6 +164,7 @@ void MainThreadRenderingStats::Add(const MainThreadRenderingStats& other) {
screen_frame_count += other.screen_frame_count;
paint_time += other.paint_time;
record_time += other.record_time;
+ best_record_time += other.best_record_time;
commit_time += other.commit_time;
commit_count += other.commit_count;
painted_pixel_count += other.painted_pixel_count;
« no previous file with comments | « cc/debug/rendering_stats.h ('k') | cc/debug/rendering_stats_instrumentation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698