This source file includes following definitions.
- IssueMainThreadRenderingStatsEvent
- IssueImplThreadRenderingStatsEvent
#include "base/debug/trace_event.h"
#include "cc/debug/benchmark_instrumentation.h"
namespace cc {
void BenchmarkInstrumentation::IssueMainThreadRenderingStatsEvent(
const MainThreadRenderingStats& stats) {
TRACE_EVENT_INSTANT1("benchmark",
"BenchmarkInstrumentation::MainThreadRenderingStats",
TRACE_EVENT_SCOPE_THREAD,
"data", stats.AsTraceableData());
}
void BenchmarkInstrumentation::IssueImplThreadRenderingStatsEvent(
const ImplThreadRenderingStats& stats) {
TRACE_EVENT_INSTANT1("benchmark",
"BenchmarkInstrumentation::ImplThreadRenderingStats",
TRACE_EVENT_SCOPE_THREAD,
"data", stats.AsTraceableData());
}
}