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=nullptr) const
 
void End (const char *label=nullptr)
 

Detailed Description

Definition at line 361 of file trace_event.h.

Constructor & Destructor Documentation

◆ TraceFlow() [1/2]

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

Definition at line 363 of file trace_event.h.

References fml::tracing::TraceEventFlowBegin0().

363  : label_(label), nonce_(TraceNonce()) {
364  TraceEventFlowBegin0("flutter", label_, nonce_);
365  }
void TraceEventFlowBegin0(TraceArg category_group, TraceArg name, TraceIDArg id)
Definition: trace_event.cc:372
size_t TraceNonce()
Definition: trace_event.cc:298

◆ ~TraceFlow()

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

Definition at line 367 of file trace_event.h.

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

◆ TraceFlow() [2/2]

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

Definition at line 369 of file trace_event.h.

369  : label_(other.label_), nonce_(other.nonce_) {
370  other.nonce_ = 0;
371  }

Member Function Documentation

◆ End()

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

Definition at line 377 of file trace_event.h.

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

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

377  {
378  if (nonce_ != 0) {
379  TraceEventFlowEnd0("flutter", label ? label : label_, nonce_);
380  nonce_ = 0;
381  }
382  }
void TraceEventFlowEnd0(TraceArg category_group, TraceArg name, TraceIDArg id)
Definition: trace_event.cc:380

◆ Step()

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

Definition at line 373 of file trace_event.h.

References fml::tracing::TraceEventFlowStep0().

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

373  {
374  TraceEventFlowStep0("flutter", label ? label : label_, nonce_);
375  }
void TraceEventFlowStep0(TraceArg category_group, TraceArg name, TraceIDArg id)
Definition: trace_event.cc:376

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