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

Side by Side Diff: cc/debug/rendering_stats.cc

Issue 16213002: Add telemetry to track the time an event spent waiting for the main thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minor fixes Created 7 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/debug/rendering_stats.h" 5 #include "cc/debug/rendering_stats.h"
6 6
7 namespace cc { 7 namespace cc {
8 8
9 RenderingStats::RenderingStats() 9 RenderingStats::RenderingStats()
10 : animation_frame_count(0), 10 : animation_frame_count(0),
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 enumerator->AddInt64("totalDeferredImageCacheHitCount", 57 enumerator->AddInt64("totalDeferredImageCacheHitCount",
58 total_deferred_image_cache_hit_count); 58 total_deferred_image_cache_hit_count);
59 enumerator->AddInt64("totalImageGatheringCount", 59 enumerator->AddInt64("totalImageGatheringCount",
60 total_image_gathering_count); 60 total_image_gathering_count);
61 enumerator->AddDouble("totalDeferredImageDecodeTimeInSeconds", 61 enumerator->AddDouble("totalDeferredImageDecodeTimeInSeconds",
62 total_deferred_image_decode_time.InSecondsF()); 62 total_deferred_image_decode_time.InSecondsF());
63 enumerator->AddDouble("totalImageGatheringTimeInSeconds", 63 enumerator->AddDouble("totalImageGatheringTimeInSeconds",
64 total_image_gathering_time.InSecondsF()); 64 total_image_gathering_time.InSecondsF());
65 enumerator->AddDouble("totalTileAnalysisTimeInSeconds", 65 enumerator->AddDouble("totalTileAnalysisTimeInSeconds",
66 total_tile_analysis_time.InSecondsF()); 66 total_tile_analysis_time.InSecondsF());
67 enumerator->AddInt64("totalImplThreadToMainThreadCount",
68 total_impl_thread_to_main_thread_count);
69 enumerator->AddDouble("totalImplThreadToMainThreadTime",
70 total_impl_thread_to_main_thread_time.InSecondsF());
67 } 71 }
68 72
69 void RenderingStats::Add(const RenderingStats& other) { 73 void RenderingStats::Add(const RenderingStats& other) {
70 animation_frame_count += other.animation_frame_count; 74 animation_frame_count += other.animation_frame_count;
71 screen_frame_count += other.screen_frame_count; 75 screen_frame_count += other.screen_frame_count;
72 dropped_frame_count += other.dropped_frame_count; 76 dropped_frame_count += other.dropped_frame_count;
73 total_paint_time += other.total_paint_time; 77 total_paint_time += other.total_paint_time;
74 total_record_time += other.total_record_time; 78 total_record_time += other.total_record_time;
75 total_rasterize_time += other.total_rasterize_time; 79 total_rasterize_time += other.total_rasterize_time;
76 total_rasterize_time_for_now_bins_on_pending_tree += 80 total_rasterize_time_for_now_bins_on_pending_tree +=
(...skipping 10 matching lines...) Expand all
87 num_missing_tiles += other.num_missing_tiles; 91 num_missing_tiles += other.num_missing_tiles;
88 total_deferred_image_decode_count += other.total_deferred_image_decode_count; 92 total_deferred_image_decode_count += other.total_deferred_image_decode_count;
89 total_deferred_image_cache_hit_count += 93 total_deferred_image_cache_hit_count +=
90 other.total_deferred_image_cache_hit_count; 94 other.total_deferred_image_cache_hit_count;
91 total_image_gathering_count += other.total_image_gathering_count; 95 total_image_gathering_count += other.total_image_gathering_count;
92 total_deferred_image_decode_time += other.total_deferred_image_decode_time; 96 total_deferred_image_decode_time += other.total_deferred_image_decode_time;
93 total_image_gathering_time += other.total_image_gathering_time; 97 total_image_gathering_time += other.total_image_gathering_time;
94 total_tiles_analyzed += other.total_tiles_analyzed; 98 total_tiles_analyzed += other.total_tiles_analyzed;
95 solid_color_tiles_analyzed += other.solid_color_tiles_analyzed; 99 solid_color_tiles_analyzed += other.solid_color_tiles_analyzed;
96 total_tile_analysis_time += other.total_tile_analysis_time; 100 total_tile_analysis_time += other.total_tile_analysis_time;
101 total_impl_thread_to_main_thread_count +=
102 other.total_impl_thread_to_main_thread_count;
103 total_impl_thread_to_main_thread_time +=
104 other.total_impl_thread_to_main_thread_time;
97 } 105 }
98 106
99 } // namespace cc 107 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698