Flutter Engine
fml::tracing::TraceFlow Class Reference

#include <trace_event.h>

Public Member Functions

 TraceFlow (const char *label)
 
 ~TraceFlow ()
 
 TraceFlow (TraceFlow &&other)
 
void Step (const char *label) const
 
void End (const char *label=nullptr)
 

Detailed Description

Definition at line 336 of file trace_event.h.

Constructor & Destructor Documentation

◆ TraceFlow() [1/2]

fml::tracing::TraceFlow::TraceFlow ( const char *  label)
inline

Definition at line 338 of file trace_event.h.

References fml::tracing::TraceEventFlowBegin0().

338  : label_(label), nonce_(TraceNonce()) {
339  TraceEventFlowBegin0("flutter", label_, nonce_);
340  }
void TraceEventFlowBegin0(TraceArg category_group, TraceArg name, TraceIDArg id)
Definition: trace_event.cc:365
size_t TraceNonce()
Definition: trace_event.cc:291

◆ ~TraceFlow()

fml::tracing::TraceFlow::~TraceFlow ( )
inline

Definition at line 342 of file trace_event.h.

342 { End(label_); }
void End(const char *label=nullptr)
Definition: trace_event.h:352

◆ TraceFlow() [2/2]

fml::tracing::TraceFlow::TraceFlow ( TraceFlow &&  other)
inline

Definition at line 344 of file trace_event.h.

344  : label_(other.label_), nonce_(other.nonce_) {
345  other.nonce_ = 0;
346  }

Member Function Documentation

◆ End()

void fml::tracing::TraceFlow::End ( const char *  label = nullptr)
inline

Definition at line 352 of file trace_event.h.

References FML_DISALLOW_COPY_AND_ASSIGN, and fml::tracing::TraceEventFlowEnd0().

Referenced by flutter::ImageDecoder::Decode().

352  {
353  if (nonce_ != 0) {
354  TraceEventFlowEnd0("flutter", label == nullptr ? label_ : label, nonce_);
355  nonce_ = 0;
356  }
357  }
void TraceEventFlowEnd0(TraceArg category_group, TraceArg name, TraceIDArg id)
Definition: trace_event.cc:373

◆ Step()

void fml::tracing::TraceFlow::Step ( const char *  label) const
inline

Definition at line 348 of file trace_event.h.

References fml::tracing::TraceEventFlowStep0().

Referenced by flutter::ImageFromCompressedData(), flutter::ImageFromDecompressedData(), flutter::ResizeRasterImage(), and flutter::UploadRasterImage().

348  {
349  TraceEventFlowStep0("flutter", label, nonce_);
350  }
void TraceEventFlowStep0(TraceArg category_group, TraceArg name, TraceIDArg id)
Definition: trace_event.cc:369

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