Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Member Functions | List of all members
dart::TimelineStream Class Reference

#include <timeline.h>

Public Member Functions

 TimelineStream (const char *name, const char *fuchsia_name, bool static_labels, bool enabled)
 
const char * name () const
 
const char * fuchsia_name () const
 
bool enabled ()
 
void set_enabled (bool enabled)
 
TimelineEvent * StartEvent ()
 

Static Public Member Functions

static intptr_t enabled_offset ()
 

Detailed Description

Definition at line 86 of file timeline.h.

Constructor & Destructor Documentation

◆ TimelineStream()

dart::TimelineStream::TimelineStream ( const char *  name,
const char *  fuchsia_name,
bool  static_labels,
bool  enabled 
)

Member Function Documentation

◆ enabled()

bool dart::TimelineStream::enabled ( )
inline

Definition at line 96 of file timeline.h.

96 {
97#if defined(DART_HOST_OS_FUCHSIA)
98#ifdef PRODUCT
99 return trace_is_category_enabled(fuchsia_name_);
100#else
101 return trace_is_category_enabled(fuchsia_name_) || enabled_ != 0;
102#endif // PRODUCT
103#else
104 return enabled_ != 0;
105#endif // defined(DART_HOST_OS_FUCHSIA)
106 }

◆ enabled_offset()

static intptr_t dart::TimelineStream::enabled_offset ( )
inlinestatic

Definition at line 114 of file timeline.h.

114 {
115 return OFFSET_OF(TimelineStream, enabled_);
116 }
TimelineStream(const char *name, const char *fuchsia_name, bool static_labels, bool enabled)
#define OFFSET_OF(type, field)
Definition: globals.h:138

◆ fuchsia_name()

const char * dart::TimelineStream::fuchsia_name ( ) const
inline

Definition at line 94 of file timeline.h.

94{ return fuchsia_name_; }

◆ name()

const char * dart::TimelineStream::name ( ) const
inline

Definition at line 93 of file timeline.h.

93{ return name_; }

◆ set_enabled()

void dart::TimelineStream::set_enabled ( bool  enabled)
inline

Definition at line 108 of file timeline.h.

108{ enabled_ = enabled ? 1 : 0; }

◆ StartEvent()

TimelineEvent * dart::TimelineStream::StartEvent ( )

The documentation for this class was generated from the following file: