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

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

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/benchmark_instrumentation.h ('k') | cc/debug/rendering_stats.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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 #include "base/debug/trace_event.h"
6 #include "cc/debug/benchmark_instrumentation.h"
7
8 namespace cc {
9
10 // Please do not change the trace events in this file without updating
11 // tools/perf/measurements/rendering_stats.py accordingly.
12 // The benchmarks search for events and their arguments by name.
13
14 void BenchmarkInstrumentation::IssueMainThreadRenderingStatsEvent(
15 const MainThreadRenderingStats& stats) {
16 TRACE_EVENT_INSTANT1("benchmark",
17 "BenchmarkInstrumentation::MainThreadRenderingStats",
18 TRACE_EVENT_SCOPE_THREAD,
19 "data", stats.AsTraceableData());
20 }
21
22 void BenchmarkInstrumentation::IssueImplThreadRenderingStatsEvent(
23 const ImplThreadRenderingStats& stats) {
24 TRACE_EVENT_INSTANT1("benchmark",
25 "BenchmarkInstrumentation::ImplThreadRenderingStats",
26 TRACE_EVENT_SCOPE_THREAD,
27 "data", stats.AsTraceableData());
28 }
29
30 } // namespace cc
OLDNEW
« no previous file with comments | « cc/debug/benchmark_instrumentation.h ('k') | cc/debug/rendering_stats.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698