Zth (libzth)
zth::PerfFiber Class Reference
Inheritance diagram for zth::PerfFiber:
zth::Runnable

Public Member Functions

 PerfFiber (Worker *worker)
 
virtual ~PerfFiber () override
 
void flushEventBuffer ()
 
- Public Member Functions inherited from zth::Runnable
virtual ~Runnable ()=default
 
int run ()
 
Fiberfiber () const noexcept
 
 operator Fiber & () const noexcept
 
char const * id_str () const
 

Static Public Member Functions

static perf_eventBuffer_typeeventBuffer ()
 

Protected Member Functions

virtual int fiberHook (Fiber &f) override
 
virtual void entry () override
 
int processEventBuffer ()
 
int startVCD ()
 
int finalizeVCD ()
 
string const & vcdId (uint64_t fiber)
 
void vcdIdRelease (uint64_t fiber)
 
- Protected Member Functions inherited from zth::Runnable
constexpr Runnable () noexcept
 
virtual void cleanup ()
 

Detailed Description

Definition at line 45 of file perf.cpp.

Constructor & Destructor Documentation

◆ PerfFiber()

zth::PerfFiber::PerfFiber ( Worker worker)
inlineexplicit

Definition at line 49 of file perf.cpp.

◆ ~PerfFiber()

virtual zth::PerfFiber::~PerfFiber ( )
inlineoverridevirtual

Definition at line 58 of file perf.cpp.

Member Function Documentation

◆ entry()

virtual void zth::PerfFiber::entry ( )
inlineoverrideprotectedvirtual

Implements zth::Runnable.

Definition at line 152 of file perf.cpp.

◆ eventBuffer()

static perf_eventBuffer_type& zth::PerfFiber::eventBuffer ( )
inlinestatic

Definition at line 139 of file perf.cpp.

◆ fiberHook()

virtual int zth::PerfFiber::fiberHook ( Fiber f)
inlineoverrideprotectedvirtual

Reimplemented from zth::Runnable.

Definition at line 146 of file perf.cpp.

◆ finalizeVCD()

int zth::PerfFiber::finalizeVCD ( )
inlineprotected

Definition at line 386 of file perf.cpp.

◆ flushEventBuffer()

void zth::PerfFiber::flushEventBuffer ( )
inline

Definition at line 82 of file perf.cpp.

◆ processEventBuffer()

int zth::PerfFiber::processEventBuffer ( )
inlineprotected

Definition at line 168 of file perf.cpp.

◆ startVCD()

int zth::PerfFiber::startVCD ( )
inlineprotected

Definition at line 317 of file perf.cpp.

◆ vcdId()

string const& zth::PerfFiber::vcdId ( uint64_t  fiber)
inlineprotected

Definition at line 425 of file perf.cpp.

◆ vcdIdRelease()

void zth::PerfFiber::vcdIdRelease ( uint64_t  fiber)
inlineprotected

Definition at line 449 of file perf.cpp.


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