blob: c32565ee62230ccc2d71e6d5972337da3ff13012 [file] [log] [blame]
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/trace_event/trace_event.h"
#include "cc/debug/benchmark_instrumentation.h"
namespace cc {
namespace benchmark_instrumentation {
// Please do not change the trace events in this file without updating
// tools/perf/measurements/ accordingly.
// The benchmarks search for events and their arguments by name.
void IssueImplThreadRenderingStatsEvent(const RenderingStats& stats) {
"data", stats.AsTraceableData());
void IssueDisplayRenderingStatsEvent() {
std::unique_ptr<base::trace_event::TracedValue> record_data(
new base::trace_event::TracedValue());
record_data->SetInteger("frame_count", 1);
"benchmark", "BenchmarkInstrumentation::DisplayRenderingStats",
TRACE_EVENT_SCOPE_THREAD, "data", std::move(record_data));
} // namespace benchmark_instrumentation
} // namespace cc