Flutter Engine
The Flutter Engine
Macros
SkTraceEventCommon.h File Reference
#include "include/core/SkTypes.h"
#include "include/utils/SkTraceEventPhase.h"

Go to the source code of this file.

Macros

#define TRACE_EMPTY(...)   do {} while (0)
 
#define TRACE_EMPTY_FMT(fmt, ...)   do {} while (0)
 
#define ATRACE_ANDROID_FRAMEWORK(fmt, ...)   TRACE_EMPTY_FMT(fmt, ##__VA_ARGS__)
 
#define ATRACE_ANDROID_FRAMEWORK_ALWAYS(fmt, ...)   TRACE_EMPTY_FMT(fmt, ##__VA_ARGS__)
 
#define TRACE_EVENT0(category_group, name)    INTERNAL_TRACE_EVENT_ADD_SCOPED(category_group, name)
 
#define TRACE_EVENT1(category_group, name, arg1_name, arg1_val)    INTERNAL_TRACE_EVENT_ADD_SCOPED(category_group, name, arg1_name, arg1_val)
 
#define TRACE_EVENT2(category_group, name, arg1_name, arg1_val, arg2_name, arg2_val)    INTERNAL_TRACE_EVENT_ADD_SCOPED(category_group, name, arg1_name, arg1_val, arg2_name, arg2_val)
 
#define TRACE_EVENT0_ALWAYS(category_group, name)    INTERNAL_TRACE_EVENT_ADD_SCOPED(category_group, name)
 
#define TRACE_EVENT1_ALWAYS(category_group, name, arg1_name, arg1_val)    INTERNAL_TRACE_EVENT_ADD_SCOPED(category_group, name, arg1_name, arg1_val)
 
#define TRACE_EVENT2_ALWAYS(category_group, name, arg1_name, arg1_val, arg2_name, arg2_val)    INTERNAL_TRACE_EVENT_ADD_SCOPED(category_group, name, arg1_name, arg1_val, arg2_name, arg2_val)
 
#define TRACE_EVENT_INSTANT0(category_group, name, scope)
 
#define TRACE_EVENT_INSTANT1(category_group, name, scope, arg1_name, arg1_val)
 
#define TRACE_EVENT_INSTANT2(category_group, name, scope, arg1_name, arg1_val, arg2_name, arg2_val)
 
#define TRACE_COUNTER1(category_group, name, value)
 
#define TRACE_COUNTER2(category_group, name, value1_name, value1_val, value2_name, value2_val)
 
#define TRACE_EVENT_ASYNC_BEGIN0(category, name, id)
 
#define TRACE_EVENT_ASYNC_BEGIN1(category, name, id, arg1_name, arg1_val)
 
#define TRACE_EVENT_ASYNC_BEGIN2(category, name, id, arg1_name, arg1_val, arg2_name, arg2_val)
 
#define TRACE_EVENT_ASYNC_END0(category, name, id)
 
#define TRACE_EVENT_ASYNC_END1(category, name, id, arg1_name, arg1_val)
 
#define TRACE_EVENT_ASYNC_END2(category, name, id, arg1_name, arg1_val, arg2_name, arg2_val)
 
#define TRACE_EVENT_OBJECT_CREATED_WITH_ID(category_group, name, id)
 
#define TRACE_EVENT_OBJECT_SNAPSHOT_WITH_ID(category_group, name, id, snapshot)
 
#define TRACE_EVENT_OBJECT_DELETED_WITH_ID(category_group, name, id)
 
#define TRACE_EVENT_CATEGORY_GROUP_ENABLED(category_group, ret)
 
#define TRACE_EVENT_FLAG_NONE   (static_cast<unsigned int>(0))
 
#define TRACE_EVENT_FLAG_COPY   (static_cast<unsigned int>(1 << 0))
 
#define TRACE_EVENT_FLAG_HAS_ID   (static_cast<unsigned int>(1 << 1))
 
#define TRACE_EVENT_FLAG_MANGLE_ID   (static_cast<unsigned int>(1 << 2))
 
#define TRACE_EVENT_FLAG_SCOPE_OFFSET   (static_cast<unsigned int>(1 << 3))
 
#define TRACE_EVENT_FLAG_SCOPE_EXTRA   (static_cast<unsigned int>(1 << 4))
 
#define TRACE_EVENT_FLAG_EXPLICIT_TIMESTAMP   (static_cast<unsigned int>(1 << 5))
 
#define TRACE_EVENT_FLAG_ASYNC_TTS   (static_cast<unsigned int>(1 << 6))
 
#define TRACE_EVENT_FLAG_BIND_TO_ENCLOSING   (static_cast<unsigned int>(1 << 7))
 
#define TRACE_EVENT_FLAG_FLOW_IN   (static_cast<unsigned int>(1 << 8))
 
#define TRACE_EVENT_FLAG_FLOW_OUT   (static_cast<unsigned int>(1 << 9))
 
#define TRACE_EVENT_FLAG_HAS_CONTEXT_ID   (static_cast<unsigned int>(1 << 10))
 
#define TRACE_EVENT_FLAG_SCOPE_MASK
 
#define TRACE_VALUE_TYPE_BOOL   (static_cast<unsigned char>(1))
 
#define TRACE_VALUE_TYPE_UINT   (static_cast<unsigned char>(2))
 
#define TRACE_VALUE_TYPE_INT   (static_cast<unsigned char>(3))
 
#define TRACE_VALUE_TYPE_DOUBLE   (static_cast<unsigned char>(4))
 
#define TRACE_VALUE_TYPE_POINTER   (static_cast<unsigned char>(5))
 
#define TRACE_VALUE_TYPE_STRING   (static_cast<unsigned char>(6))
 
#define TRACE_VALUE_TYPE_COPY_STRING   (static_cast<unsigned char>(7))
 
#define TRACE_VALUE_TYPE_CONVERTABLE   (static_cast<unsigned char>(8))
 
#define TRACE_EVENT_SCOPE_GLOBAL   (static_cast<unsigned char>(0 << 3))
 
#define TRACE_EVENT_SCOPE_PROCESS   (static_cast<unsigned char>(1 << 3))
 
#define TRACE_EVENT_SCOPE_THREAD   (static_cast<unsigned char>(2 << 3))
 
#define TRACE_EVENT_SCOPE_NAME_GLOBAL   ('g')
 
#define TRACE_EVENT_SCOPE_NAME_PROCESS   ('p')
 
#define TRACE_EVENT_SCOPE_NAME_THREAD   ('t')
 

Macro Definition Documentation

◆ ATRACE_ANDROID_FRAMEWORK

#define ATRACE_ANDROID_FRAMEWORK (   fmt,
  ... 
)    TRACE_EMPTY_FMT(fmt, ##__VA_ARGS__)

Definition at line 560 of file SkTraceEventCommon.h.

◆ ATRACE_ANDROID_FRAMEWORK_ALWAYS

#define ATRACE_ANDROID_FRAMEWORK_ALWAYS (   fmt,
  ... 
)    TRACE_EMPTY_FMT(fmt, ##__VA_ARGS__)

Definition at line 561 of file SkTraceEventCommon.h.

◆ TRACE_COUNTER1

#define TRACE_COUNTER1 (   category_group,
  name,
  value 
)
Value:
static_cast<int>(value))
#define TRACE_EVENT_FLAG_NONE
#define TRACE_EVENT_PHASE_COUNTER
#define INTERNAL_TRACE_EVENT_ADD(phase, category_group, name, flags,...)
Definition: SkTraceEvent.h:166
uint8_t value
DEF_SWITCHES_START aot vmservice shared library name
Definition: switches.h:32

Definition at line 601 of file SkTraceEventCommon.h.

◆ TRACE_COUNTER2

#define TRACE_COUNTER2 (   category_group,
  name,
  value1_name,
  value1_val,
  value2_name,
  value2_val 
)
Value:
TRACE_EVENT_FLAG_NONE, value1_name, \
static_cast<int>(value1_val), value2_name, \
static_cast<int>(value2_val))

Definition at line 609 of file SkTraceEventCommon.h.

◆ TRACE_EMPTY

#define TRACE_EMPTY (   ...)    do {} while (0)

Definition at line 227 of file SkTraceEventCommon.h.

◆ TRACE_EMPTY_FMT

#define TRACE_EMPTY_FMT (   fmt,
  ... 
)    do {} while (0)

Definition at line 228 of file SkTraceEventCommon.h.

◆ TRACE_EVENT0

#define TRACE_EVENT0 (   category_group,
  name 
)     INTERNAL_TRACE_EVENT_ADD_SCOPED(category_group, name)

Definition at line 565 of file SkTraceEventCommon.h.

◆ TRACE_EVENT0_ALWAYS

#define TRACE_EVENT0_ALWAYS (   category_group,
  name 
)     INTERNAL_TRACE_EVENT_ADD_SCOPED(category_group, name)

Definition at line 574 of file SkTraceEventCommon.h.

◆ TRACE_EVENT1

#define TRACE_EVENT1 (   category_group,
  name,
  arg1_name,
  arg1_val 
)     INTERNAL_TRACE_EVENT_ADD_SCOPED(category_group, name, arg1_name, arg1_val)

Definition at line 568 of file SkTraceEventCommon.h.

◆ TRACE_EVENT1_ALWAYS

#define TRACE_EVENT1_ALWAYS (   category_group,
  name,
  arg1_name,
  arg1_val 
)     INTERNAL_TRACE_EVENT_ADD_SCOPED(category_group, name, arg1_name, arg1_val)

Definition at line 577 of file SkTraceEventCommon.h.

◆ TRACE_EVENT2

#define TRACE_EVENT2 (   category_group,
  name,
  arg1_name,
  arg1_val,
  arg2_name,
  arg2_val 
)     INTERNAL_TRACE_EVENT_ADD_SCOPED(category_group, name, arg1_name, arg1_val, arg2_name, arg2_val)

Definition at line 571 of file SkTraceEventCommon.h.

◆ TRACE_EVENT2_ALWAYS

#define TRACE_EVENT2_ALWAYS (   category_group,
  name,
  arg1_name,
  arg1_val,
  arg2_name,
  arg2_val 
)     INTERNAL_TRACE_EVENT_ADD_SCOPED(category_group, name, arg1_name, arg1_val, arg2_name, arg2_val)

Definition at line 580 of file SkTraceEventCommon.h.

◆ TRACE_EVENT_ASYNC_BEGIN0

#define TRACE_EVENT_ASYNC_BEGIN0 (   category,
  name,
  id 
)
Value:
#define TRACE_EVENT_PHASE_ASYNC_BEGIN
#define INTERNAL_TRACE_EVENT_ADD_WITH_ID(phase, category_group, name, id, flags,...)
Definition: SkTraceEvent.h:178

Definition at line 616 of file SkTraceEventCommon.h.

◆ TRACE_EVENT_ASYNC_BEGIN1

#define TRACE_EVENT_ASYNC_BEGIN1 (   category,
  name,
  id,
  arg1_name,
  arg1_val 
)
Value:

Definition at line 619 of file SkTraceEventCommon.h.

◆ TRACE_EVENT_ASYNC_BEGIN2

#define TRACE_EVENT_ASYNC_BEGIN2 (   category,
  name,
  id,
  arg1_name,
  arg1_val,
  arg2_name,
  arg2_val 
)
Value:
category, name, id, TRACE_EVENT_FLAG_NONE, arg1_name, arg1_val, arg2_name, arg2_val)

Definition at line 622 of file SkTraceEventCommon.h.

◆ TRACE_EVENT_ASYNC_END0

#define TRACE_EVENT_ASYNC_END0 (   category,
  name,
  id 
)
Value:

Definition at line 626 of file SkTraceEventCommon.h.

◆ TRACE_EVENT_ASYNC_END1

#define TRACE_EVENT_ASYNC_END1 (   category,
  name,
  id,
  arg1_name,
  arg1_val 
)
Value:

Definition at line 629 of file SkTraceEventCommon.h.

◆ TRACE_EVENT_ASYNC_END2

#define TRACE_EVENT_ASYNC_END2 (   category,
  name,
  id,
  arg1_name,
  arg1_val,
  arg2_name,
  arg2_val 
)
Value:
category, name, id, TRACE_EVENT_FLAG_NONE, arg1_name, arg1_val, arg2_name, arg2_val)

Definition at line 632 of file SkTraceEventCommon.h.

◆ TRACE_EVENT_CATEGORY_GROUP_ENABLED

#define TRACE_EVENT_CATEGORY_GROUP_ENABLED (   category_group,
  ret 
)
Value:
do { \
INTERNAL_TRACE_EVENT_GET_CATEGORY_INFO(category_group); \
*ret = true; \
} else { \
*ret = false; \
} \
} while (0)
#define INTERNAL_TRACE_EVENT_CATEGORY_GROUP_ENABLED_FOR_RECORDING_MODE()
Definition: SkTraceEvent.h:76

Definition at line 654 of file SkTraceEventCommon.h.

◆ TRACE_EVENT_FLAG_ASYNC_TTS

#define TRACE_EVENT_FLAG_ASYNC_TTS   (static_cast<unsigned int>(1 << 6))

Definition at line 674 of file SkTraceEventCommon.h.

◆ TRACE_EVENT_FLAG_BIND_TO_ENCLOSING

#define TRACE_EVENT_FLAG_BIND_TO_ENCLOSING   (static_cast<unsigned int>(1 << 7))

Definition at line 675 of file SkTraceEventCommon.h.

◆ TRACE_EVENT_FLAG_COPY

#define TRACE_EVENT_FLAG_COPY   (static_cast<unsigned int>(1 << 0))

Definition at line 668 of file SkTraceEventCommon.h.

◆ TRACE_EVENT_FLAG_EXPLICIT_TIMESTAMP

#define TRACE_EVENT_FLAG_EXPLICIT_TIMESTAMP   (static_cast<unsigned int>(1 << 5))

Definition at line 673 of file SkTraceEventCommon.h.

◆ TRACE_EVENT_FLAG_FLOW_IN

#define TRACE_EVENT_FLAG_FLOW_IN   (static_cast<unsigned int>(1 << 8))

Definition at line 676 of file SkTraceEventCommon.h.

◆ TRACE_EVENT_FLAG_FLOW_OUT

#define TRACE_EVENT_FLAG_FLOW_OUT   (static_cast<unsigned int>(1 << 9))

Definition at line 677 of file SkTraceEventCommon.h.

◆ TRACE_EVENT_FLAG_HAS_CONTEXT_ID

#define TRACE_EVENT_FLAG_HAS_CONTEXT_ID   (static_cast<unsigned int>(1 << 10))

Definition at line 678 of file SkTraceEventCommon.h.

◆ TRACE_EVENT_FLAG_HAS_ID

#define TRACE_EVENT_FLAG_HAS_ID   (static_cast<unsigned int>(1 << 1))

Definition at line 669 of file SkTraceEventCommon.h.

◆ TRACE_EVENT_FLAG_MANGLE_ID

#define TRACE_EVENT_FLAG_MANGLE_ID   (static_cast<unsigned int>(1 << 2))

Definition at line 670 of file SkTraceEventCommon.h.

◆ TRACE_EVENT_FLAG_NONE

#define TRACE_EVENT_FLAG_NONE   (static_cast<unsigned int>(0))

Definition at line 667 of file SkTraceEventCommon.h.

◆ TRACE_EVENT_FLAG_SCOPE_EXTRA

#define TRACE_EVENT_FLAG_SCOPE_EXTRA   (static_cast<unsigned int>(1 << 4))

Definition at line 672 of file SkTraceEventCommon.h.

◆ TRACE_EVENT_FLAG_SCOPE_MASK

#define TRACE_EVENT_FLAG_SCOPE_MASK
Value:
(static_cast<unsigned int>(TRACE_EVENT_FLAG_SCOPE_OFFSET | \
TRACE_EVENT_FLAG_SCOPE_EXTRA))
#define TRACE_EVENT_FLAG_SCOPE_OFFSET

Definition at line 680 of file SkTraceEventCommon.h.

◆ TRACE_EVENT_FLAG_SCOPE_OFFSET

#define TRACE_EVENT_FLAG_SCOPE_OFFSET   (static_cast<unsigned int>(1 << 3))

Definition at line 671 of file SkTraceEventCommon.h.

◆ TRACE_EVENT_INSTANT0

#define TRACE_EVENT_INSTANT0 (   category_group,
  name,
  scope 
)
Value:

Definition at line 585 of file SkTraceEventCommon.h.

◆ TRACE_EVENT_INSTANT1

#define TRACE_EVENT_INSTANT1 (   category_group,
  name,
  scope,
  arg1_name,
  arg1_val 
)
Value:
TRACE_EVENT_FLAG_NONE | scope, arg1_name, arg1_val)

Definition at line 589 of file SkTraceEventCommon.h.

◆ TRACE_EVENT_INSTANT2

#define TRACE_EVENT_INSTANT2 (   category_group,
  name,
  scope,
  arg1_name,
  arg1_val,
  arg2_name,
  arg2_val 
)
Value:
TRACE_EVENT_FLAG_NONE | scope, arg1_name, arg1_val, \
arg2_name, arg2_val)

Definition at line 593 of file SkTraceEventCommon.h.

◆ TRACE_EVENT_OBJECT_CREATED_WITH_ID

#define TRACE_EVENT_OBJECT_CREATED_WITH_ID (   category_group,
  name,
  id 
)
Value:

Definition at line 637 of file SkTraceEventCommon.h.

◆ TRACE_EVENT_OBJECT_DELETED_WITH_ID

#define TRACE_EVENT_OBJECT_DELETED_WITH_ID (   category_group,
  name,
  id 
)
Value:

Definition at line 648 of file SkTraceEventCommon.h.

◆ TRACE_EVENT_OBJECT_SNAPSHOT_WITH_ID

#define TRACE_EVENT_OBJECT_SNAPSHOT_WITH_ID (   category_group,
  name,
  id,
  snapshot 
)
Value:
id, TRACE_EVENT_FLAG_NONE, "snapshot", snapshot)
#define TRACE_EVENT_PHASE_SNAPSHOT_OBJECT

Definition at line 642 of file SkTraceEventCommon.h.

◆ TRACE_EVENT_SCOPE_GLOBAL

#define TRACE_EVENT_SCOPE_GLOBAL   (static_cast<unsigned char>(0 << 3))

Definition at line 695 of file SkTraceEventCommon.h.

◆ TRACE_EVENT_SCOPE_NAME_GLOBAL

#define TRACE_EVENT_SCOPE_NAME_GLOBAL   ('g')

Definition at line 699 of file SkTraceEventCommon.h.

◆ TRACE_EVENT_SCOPE_NAME_PROCESS

#define TRACE_EVENT_SCOPE_NAME_PROCESS   ('p')

Definition at line 700 of file SkTraceEventCommon.h.

◆ TRACE_EVENT_SCOPE_NAME_THREAD

#define TRACE_EVENT_SCOPE_NAME_THREAD   ('t')

Definition at line 701 of file SkTraceEventCommon.h.

◆ TRACE_EVENT_SCOPE_PROCESS

#define TRACE_EVENT_SCOPE_PROCESS   (static_cast<unsigned char>(1 << 3))

Definition at line 696 of file SkTraceEventCommon.h.

◆ TRACE_EVENT_SCOPE_THREAD

#define TRACE_EVENT_SCOPE_THREAD   (static_cast<unsigned char>(2 << 3))

Definition at line 697 of file SkTraceEventCommon.h.

◆ TRACE_VALUE_TYPE_BOOL

#define TRACE_VALUE_TYPE_BOOL   (static_cast<unsigned char>(1))

Definition at line 685 of file SkTraceEventCommon.h.

◆ TRACE_VALUE_TYPE_CONVERTABLE

#define TRACE_VALUE_TYPE_CONVERTABLE   (static_cast<unsigned char>(8))

Definition at line 692 of file SkTraceEventCommon.h.

◆ TRACE_VALUE_TYPE_COPY_STRING

#define TRACE_VALUE_TYPE_COPY_STRING   (static_cast<unsigned char>(7))

Definition at line 691 of file SkTraceEventCommon.h.

◆ TRACE_VALUE_TYPE_DOUBLE

#define TRACE_VALUE_TYPE_DOUBLE   (static_cast<unsigned char>(4))

Definition at line 688 of file SkTraceEventCommon.h.

◆ TRACE_VALUE_TYPE_INT

#define TRACE_VALUE_TYPE_INT   (static_cast<unsigned char>(3))

Definition at line 687 of file SkTraceEventCommon.h.

◆ TRACE_VALUE_TYPE_POINTER

#define TRACE_VALUE_TYPE_POINTER   (static_cast<unsigned char>(5))

Definition at line 689 of file SkTraceEventCommon.h.

◆ TRACE_VALUE_TYPE_STRING

#define TRACE_VALUE_TYPE_STRING   (static_cast<unsigned char>(6))

Definition at line 690 of file SkTraceEventCommon.h.

◆ TRACE_VALUE_TYPE_UINT

#define TRACE_VALUE_TYPE_UINT   (static_cast<unsigned char>(2))

Definition at line 686 of file SkTraceEventCommon.h.