| 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/rendering_stats.h" | 5 #include "cc/rendering_stats.h" |
| 6 | 6 |
| 7 namespace cc { | 7 namespace cc { |
| 8 | 8 |
| 9 RenderingStats::RenderingStats() | 9 RenderingStats::RenderingStats() |
| 10 : numAnimationFrames(0), | 10 : numAnimationFrames(0), |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 } | 23 } |
| 24 | 24 |
| 25 void RenderingStats::EnumerateFields(Enumerator* enumerator) const { | 25 void RenderingStats::EnumerateFields(Enumerator* enumerator) const { |
| 26 enumerator->AddInt64("numAnimationFrames", numAnimationFrames); | 26 enumerator->AddInt64("numAnimationFrames", numAnimationFrames); |
| 27 enumerator->AddInt64("numFramesSentToScreen", numFramesSentToScreen); | 27 enumerator->AddInt64("numFramesSentToScreen", numFramesSentToScreen); |
| 28 enumerator->AddInt64("droppedFrameCount", droppedFrameCount); | 28 enumerator->AddInt64("droppedFrameCount", droppedFrameCount); |
| 29 enumerator->AddDouble("totalPaintTimeInSeconds", | 29 enumerator->AddDouble("totalPaintTimeInSeconds", |
| 30 totalPaintTime.InSecondsF()); | 30 totalPaintTime.InSecondsF()); |
| 31 enumerator->AddDouble("totalRasterizeTimeInSeconds", | 31 enumerator->AddDouble("totalRasterizeTimeInSeconds", |
| 32 totalRasterizeTime.InSecondsF()); | 32 totalRasterizeTime.InSecondsF()); |
| 33 enumerator->AddDouble("totalRasterizeTimeForNowBinsOnPendingTree", |
| 34 totalRasterizeTimeForNowBinsOnPendingTree.InSecondsF()); |
| 33 enumerator->AddDouble("totalCommitTimeInSeconds", | 35 enumerator->AddDouble("totalCommitTimeInSeconds", |
| 34 totalCommitTime.InSecondsF()); | 36 totalCommitTime.InSecondsF()); |
| 35 enumerator->AddInt64("totalCommitCount", totalCommitCount); | 37 enumerator->AddInt64("totalCommitCount", totalCommitCount); |
| 36 enumerator->AddInt64("totalPixelsPainted", totalPixelsPainted); | 38 enumerator->AddInt64("totalPixelsPainted", totalPixelsPainted); |
| 37 enumerator->AddInt64("totalPixelsRasterized", totalPixelsRasterized); | 39 enumerator->AddInt64("totalPixelsRasterized", totalPixelsRasterized); |
| 38 enumerator->AddInt64("numImplThreadScrolls", numImplThreadScrolls); | 40 enumerator->AddInt64("numImplThreadScrolls", numImplThreadScrolls); |
| 39 enumerator->AddInt64("numMainThreadScrolls", numMainThreadScrolls); | 41 enumerator->AddInt64("numMainThreadScrolls", numMainThreadScrolls); |
| 40 enumerator->AddInt64("numLayersDrawn", numLayersDrawn); | 42 enumerator->AddInt64("numLayersDrawn", numLayersDrawn); |
| 41 enumerator->AddInt64("numMissingTiles", numMissingTiles); | 43 enumerator->AddInt64("numMissingTiles", numMissingTiles); |
| 42 enumerator->AddInt64("totalDeferredImageDecodeCount", | 44 enumerator->AddInt64("totalDeferredImageDecodeCount", |
| 43 totalDeferredImageDecodeCount); | 45 totalDeferredImageDecodeCount); |
| 44 enumerator->AddInt64("totalDeferredImageCacheHitCount", | 46 enumerator->AddInt64("totalDeferredImageCacheHitCount", |
| 45 totalDeferredImageCacheHitCount); | 47 totalDeferredImageCacheHitCount); |
| 46 enumerator->AddInt64("totalImageGatheringCount", totalImageGatheringCount); | 48 enumerator->AddInt64("totalImageGatheringCount", totalImageGatheringCount); |
| 47 enumerator->AddDouble("totalDeferredImageDecodeTimeInSeconds", | 49 enumerator->AddDouble("totalDeferredImageDecodeTimeInSeconds", |
| 48 totalDeferredImageDecodeTime.InSecondsF()); | 50 totalDeferredImageDecodeTime.InSecondsF()); |
| 49 enumerator->AddDouble("totalImageGatheringTimeInSeconds", | 51 enumerator->AddDouble("totalImageGatheringTimeInSeconds", |
| 50 totalImageGatheringTime.InSecondsF()); | 52 totalImageGatheringTime.InSecondsF()); |
| 51 } | 53 } |
| 52 | 54 |
| 53 } // namespace cc | 55 } // namespace cc |
| OLD | NEW |