| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef CC_DEBUG_BENCHMARK_INSTRUMENTATION_H_ | 5 #ifndef CC_DEBUG_BENCHMARK_INSTRUMENTATION_H_ |
| 6 #define CC_DEBUG_BENCHMARK_INSTRUMENTATION_H_ | 6 #define CC_DEBUG_BENCHMARK_INSTRUMENTATION_H_ |
| 7 | 7 |
| 8 #include "base/debug/trace_event.h" | 8 #include "cc/debug/rendering_stats.h" |
| 9 | 9 |
| 10 namespace cc { | 10 namespace cc { |
| 11 namespace benchmark_instrumentation { | 11 |
| 12 // Please do not change the string constants in this file (or the TRACE_EVENT | 12 class CC_EXPORT BenchmarkInstrumentation { |
| 13 // calls that use them) without updating | 13 public: |
| 14 // tools/perf/measurements/rasterize_and_record_benchmark.py accordingly. | 14 static void IssueMainThreadRenderingStatsEvent( |
| 15 // The benchmark searches for events and their arguments by name. | 15 const MainThreadRenderingStats& stats); |
| 16 const char kCategory[] = "cc,benchmark"; | 16 static void IssueImplThreadRenderingStatsEvent( |
| 17 const char kSourceFrameNumber[] = "source_frame_number"; | 17 const ImplThreadRenderingStats& stats); |
| 18 const char kData[] = "data"; | 18 }; |
| 19 const char kWidth[] = "width"; | 19 |
| 20 const char kHeight[] = "height"; | |
| 21 const char kNumPixelsRasterized[] = "num_pixels_rasterized"; | |
| 22 const char kLayerTreeHostUpdateLayers[] = "LayerTreeHost::UpdateLayers"; | |
| 23 const char kPictureLayerUpdate[] = "PictureLayer::Update"; | |
| 24 const char kRunRasterOnThread[] = "RasterWorkerPoolTaskImpl::RunRasterOnThread"; | |
| 25 const char kRecordLoop[] = "RecordLoop"; | |
| 26 const char kRasterLoop[] = "RasterLoop"; | |
| 27 const char kPictureRecord[] = "Picture::Record"; | |
| 28 const char kPictureRaster[] = "Picture::Raster"; | |
| 29 } // namespace benchmark_instrumentation | |
| 30 } // namespace cc | 20 } // namespace cc |
| 31 | 21 |
| 32 #endif // CC_DEBUG_BENCHMARK_INSTRUMENTATION_H_ | 22 #endif // CC_DEBUG_BENCHMARK_INSTRUMENTATION_H_ |
| OLD | NEW |