Fix web contents modal dialog crash in SimpleWebViewDialog
[chromium-blink-merge.git] / cc / debug / benchmark_instrumentation.h
blob615fbe90622c12a4314b118585364ef675bb1472
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"
10 namespace cc {
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/measurements/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 kSourceFrameNumber[] = "source_frame_number";
18 const char kData[] = "data";
19 const char kWidth[] = "width";
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
32 #endif // CC_DEBUG_BENCHMARK_INSTRUMENTATION_H_