| OLD | NEW |
| 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 Loading... |
| 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->AddDouble("averageImplThreadToMainThreadTime", |
| 68 average_impl_thread_to_main_thread_time.InSecondsF()); |
| 67 } | 69 } |
| 68 | 70 |
| 69 void RenderingStats::Add(const RenderingStats& other) { | 71 void RenderingStats::Add(const RenderingStats& other) { |
| 70 animation_frame_count += other.animation_frame_count; | 72 animation_frame_count += other.animation_frame_count; |
| 71 screen_frame_count += other.screen_frame_count; | 73 screen_frame_count += other.screen_frame_count; |
| 72 dropped_frame_count += other.dropped_frame_count; | 74 dropped_frame_count += other.dropped_frame_count; |
| 73 total_paint_time += other.total_paint_time; | 75 total_paint_time += other.total_paint_time; |
| 74 total_record_time += other.total_record_time; | 76 total_record_time += other.total_record_time; |
| 75 total_rasterize_time += other.total_rasterize_time; | 77 total_rasterize_time += other.total_rasterize_time; |
| 76 total_rasterize_time_for_now_bins_on_pending_tree += | 78 total_rasterize_time_for_now_bins_on_pending_tree += |
| (...skipping 10 matching lines...) Expand all Loading... |
| 87 num_missing_tiles += other.num_missing_tiles; | 89 num_missing_tiles += other.num_missing_tiles; |
| 88 total_deferred_image_decode_count += other.total_deferred_image_decode_count; | 90 total_deferred_image_decode_count += other.total_deferred_image_decode_count; |
| 89 total_deferred_image_cache_hit_count += | 91 total_deferred_image_cache_hit_count += |
| 90 other.total_deferred_image_cache_hit_count; | 92 other.total_deferred_image_cache_hit_count; |
| 91 total_image_gathering_count += other.total_image_gathering_count; | 93 total_image_gathering_count += other.total_image_gathering_count; |
| 92 total_deferred_image_decode_time += other.total_deferred_image_decode_time; | 94 total_deferred_image_decode_time += other.total_deferred_image_decode_time; |
| 93 total_image_gathering_time += other.total_image_gathering_time; | 95 total_image_gathering_time += other.total_image_gathering_time; |
| 94 total_tiles_analyzed += other.total_tiles_analyzed; | 96 total_tiles_analyzed += other.total_tiles_analyzed; |
| 95 solid_color_tiles_analyzed += other.solid_color_tiles_analyzed; | 97 solid_color_tiles_analyzed += other.solid_color_tiles_analyzed; |
| 96 total_tile_analysis_time += other.total_tile_analysis_time; | 98 total_tile_analysis_time += other.total_tile_analysis_time; |
| 99 average_impl_thread_to_main_thread_time += |
| 100 other.average_impl_thread_to_main_thread_time; |
| 97 } | 101 } |
| 98 | 102 |
| 99 } // namespace cc | 103 } // namespace cc |
| OLD | NEW |