GoogleURLTrackerInfoBarDelegate: Initialize uninitialized member in constructor.
[chromium-blink-merge.git] / cc / debug / benchmark_instrumentation.cc
blobbf2b02227201cd688be0371271a8aed77b6e4594
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 #include "base/debug/trace_event.h"
6 #include "cc/debug/benchmark_instrumentation.h"
8 namespace cc {
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.
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());
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());
30 } // namespace cc