Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(237)

Side by Side Diff: cc/debug/benchmark_instrumentation.h

Issue 25353009: telemetry: Refactored rasterize_and_record measurement. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Made BenchmarkInstrumentation a class. Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/debug/OWNERS ('k') | cc/debug/benchmark_instrumentation.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_
OLDNEW
« no previous file with comments | « cc/debug/OWNERS ('k') | cc/debug/benchmark_instrumentation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698