Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Classes | Public Member Functions | List of all members
skia_private::ScopedTracer Class Reference

#include <SkTraceEvent.h>

Public Member Functions

 ScopedTracer ()
 
 ~ScopedTracer ()
 
void Initialize (const uint8_t *category_group_enabled, const char *name, SkEventTracer::Handle event_handle)
 

Detailed Description

Definition at line 364 of file SkTraceEvent.h.

Constructor & Destructor Documentation

◆ ScopedTracer()

skia_private::ScopedTracer::ScopedTracer ( )
inline

Definition at line 367 of file SkTraceEvent.h.

367: p_data_(nullptr) {}

◆ ~ScopedTracer()

skia_private::ScopedTracer::~ScopedTracer ( )
inline

Definition at line 369 of file SkTraceEvent.h.

369 {
370 if (p_data_ && *data_.category_group_enabled)
372 data_.category_group_enabled, data_.name, data_.event_handle);
373 }
#define TRACE_EVENT_API_UPDATE_TRACE_EVENT_DURATION

Member Function Documentation

◆ Initialize()

void skia_private::ScopedTracer::Initialize ( const uint8_t *  category_group_enabled,
const char *  name,
SkEventTracer::Handle  event_handle 
)
inline

Definition at line 375 of file SkTraceEvent.h.

377 {
378 data_.category_group_enabled = category_group_enabled;
379 data_.name = name;
380 data_.event_handle = event_handle;
381 p_data_ = &data_;
382 }
const char * name
Definition fuchsia.cc:50

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