2 * Copyright 2022 Google LLC
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
8 #include "src/core/SkTraceEvent.h"
9 #include "src/core/SkTraceEventCommon.h"
10 #include "tools/trace/SkPerfettoTrace.h"
12 PERFETTO_TRACK_EVENT_STATIC_STORAGE();
14 SkPerfettoTrace::SkPerfettoTrace() {
17 SkPerfettoTrace::~SkPerfettoTrace() {
20 SkEventTracer::Handle SkPerfettoTrace::addTraceEvent(char phase,
21 const uint8_t* categoryEnabledFlag,
25 const char** argNames,
26 const uint8_t* argTypes,
27 const uint64_t* argValues,
32 void SkPerfettoTrace::updateTraceEventDuration(const uint8_t* categoryEnabledFlag,
34 SkEventTracer::Handle handle) {
37 const uint8_t* SkPerfettoTrace::getCategoryGroupEnabled(const char* name) {
38 return fCategories.getCategoryGroupEnabled(name);
41 const char* SkPerfettoTrace::getCategoryGroupName(const uint8_t* categoryEnabledFlag) {
42 return fCategories.getCategoryGroupName(categoryEnabledFlag);