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
3 // found in the LICENSE file.
5 #ifndef CC_DEBUG_BENCHMARK_INSTRUMENTATION_H_
6 #define CC_DEBUG_BENCHMARK_INSTRUMENTATION_H_
8 #include "base/debug/trace_event.h"
11 namespace benchmark_instrumentation
{
12 // Please do not change the string constants in this file (or the TRACE_EVENT
13 // calls that use them) without updating
14 // tools/perf/perf_tools/rasterize_and_record_benchmark.py accordingly.
15 // The benchmark searches for events and their arguments by name.
16 const char kCategory
[] = "cc,benchmark";
17 const char kCommitNumber
[] = "commit_number";
18 const char kSourceFrameNumber
[] = "source_frame_number";
19 const char kData
[] = "data";
20 const char kWidth
[] = "width";
21 const char kHeight
[] = "height";
22 const char kNumPixelsRasterized
[] = "num_pixels_rasterized";
23 const char kLayerTreeHostUpdateLayers
[] = "LayerTreeHost::UpdateLayers";
24 const char kPictureLayerUpdate
[] = "PictureLayer::Update";
25 const char kRunRasterOnThread
[] = "RasterWorkerPoolTaskImpl::RunRasterOnThread";
26 const char kRecordLoop
[] = "RecordLoop";
27 const char kRasterLoop
[] = "RasterLoop";
28 const char kPictureRecord
[] = "Picture::Record";
29 const char kPictureRaster
[] = "Picture::Raster";
30 } // namespace benchmark_instrumentation
33 #endif // CC_DEBUG_BENCHMARK_INSTRUMENTATION_H_