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. 4 5#ifndef CC_DEBUG_BENCHMARK_INSTRUMENTATION_H_ 6#define CC_DEBUG_BENCHMARK_INSTRUMENTATION_H_ 7 8#include "base/debug/trace_event.h" 9 10namespace cc { 11namespace 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. 16const char kCategory[] = "cc,benchmark"; 17const char kSourceFrameNumber[] = "source_frame_number"; 18const char kData[] = "data"; 19const char kWidth[] = "width"; 20const char kHeight[] = "height"; 21const char kNumPixelsRasterized[] = "num_pixels_rasterized"; 22const char kLayerTreeHostUpdateLayers[] = "LayerTreeHost::UpdateLayers"; 23const char kPictureLayerUpdate[] = "PictureLayer::Update"; 24const char kRunRasterOnThread[] = "RasterWorkerPoolTaskImpl::RunRasterOnThread"; 25const char kRecordLoop[] = "RecordLoop"; 26const char kRasterLoop[] = "RasterLoop"; 27const char kPictureRecord[] = "Picture::Record"; 28const char kPictureRaster[] = "Picture::Raster"; 29} // namespace benchmark_instrumentation 30} // namespace cc 31 32#endif // CC_DEBUG_BENCHMARK_INSTRUMENTATION_H_ 33