Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
SkDebugfTracer.h
Go to the documentation of this file.
1/*
2 * Copyright 2017 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#ifndef SkDebugfTracer_DEFINED
9#define SkDebugfTracer_DEFINED
10
14
15/**
16 * A SkEventTracer implementation that logs events using SkDebugf.
17 */
19public:
21
23 const uint8_t* categoryEnabledFlag,
24 const char* name,
25 uint64_t id,
26 int numArgs,
27 const char** argNames,
28 const uint8_t* argTypes,
29 const uint64_t* argValues,
30 uint8_t flags) override;
31
32 void updateTraceEventDuration(const uint8_t* categoryEnabledFlag,
33 const char* name,
34 SkEventTracer::Handle handle) override;
35
36 const uint8_t* getCategoryGroupEnabled(const char* name) override {
37 return fCategories.getCategoryGroupEnabled(name);
38 }
39
40 const char* getCategoryGroupName(const uint8_t* categoryEnabledFlag) override {
41 return fCategories.getCategoryGroupName(categoryEnabledFlag);
42 }
43
44 void newTracingSection(const char* name) override;
45
46private:
47 SkString fIndent;
48 int fCnt = 0;
49 SkEventTracingCategories fCategories;
50};
51
52#endif
void updateTraceEventDuration(const uint8_t *categoryEnabledFlag, const char *name, SkEventTracer::Handle handle) override
const char * getCategoryGroupName(const uint8_t *categoryEnabledFlag) override
void newTracingSection(const char *name) override
const uint8_t * getCategoryGroupEnabled(const char *name) override
SkEventTracer::Handle addTraceEvent(char phase, const uint8_t *categoryEnabledFlag, const char *name, uint64_t id, int numArgs, const char **argNames, const uint8_t *argTypes, const uint64_t *argValues, uint8_t flags) override
uint64_t Handle
const char * getCategoryGroupName(const uint8_t *categoryEnabledFlag)
uint8_t * getCategoryGroupEnabled(const char *name)
FlutterSemanticsFlag flags
const char * name
Definition fuchsia.cc:50