Zth (libzth)
Loading...
Searching...
No Matches
zth::PerfBuffer Class Referencefinal

Public Types

typedef void * Known
 
typedef set_type< Known >::type KnownSet
 

Public Member Functions

 PerfBuffer () noexcept
 
 ~PerfBuffer () noexcept
 
bool enabled () const noexcept
 
int init () noexcept
 
void deinit () noexcept
 
size_t size () const noexcept
 
size_t space () const noexcept
 
bool full () const noexcept
 
void check () noexcept
 
char const * data () noexcept
 
char volatile * reserve (size_t s) noexcept
 
void release () noexcept
 
Timestamp const & t () const noexcept
 
void t (Timestamp const &t) noexcept
 
void dump_callback (zth_perf_dump_callback_t *f) noexcept
 
zth_perf_dump_callback_tdump_callback () const noexcept
 
void done_callback (zth_perf_done_callback_t *f) noexcept
 
zth_perf_done_callback_tdone_callback () const noexcept
 
void start (zth_perf_done_callback_t *f=nullptr) noexcept
 
void stop () noexcept
 
bool running () const noexcept
 
bool knows (void *x) const noexcept
 
void know (void *x) noexcept
 

Static Public Member Functions

static constexpr size_t capacity () noexcept
 

Detailed Description

Definition at line 43 of file perf.cpp.

Member Typedef Documentation

◆ Known

typedef void* zth::PerfBuffer::Known

Definition at line 46 of file perf.cpp.

◆ KnownSet

Definition at line 47 of file perf.cpp.

Constructor & Destructor Documentation

◆ PerfBuffer()

zth::PerfBuffer::PerfBuffer ( )
inlinenoexcept

Definition at line 49 of file perf.cpp.

◆ ~PerfBuffer()

zth::PerfBuffer::~PerfBuffer ( )
inlinenoexcept

Definition at line 57 of file perf.cpp.

Member Function Documentation

◆ capacity()

static constexpr size_t zth::PerfBuffer::capacity ( )
inlinestaticconstexprnoexcept

Definition at line 67 of file perf.cpp.

◆ check()

void zth::PerfBuffer::check ( )
inlinenoexcept

Definition at line 113 of file perf.cpp.

◆ data()

char const * zth::PerfBuffer::data ( )
inlinenoexcept

Definition at line 119 of file perf.cpp.

◆ deinit()

void zth::PerfBuffer::deinit ( )
inlinenoexcept

Definition at line 84 of file perf.cpp.

◆ done_callback() [1/2]

zth_perf_done_callback_t * zth::PerfBuffer::done_callback ( ) const
inlinenoexcept

Definition at line 197 of file perf.cpp.

◆ done_callback() [2/2]

void zth::PerfBuffer::done_callback ( zth_perf_done_callback_t f)
inlinenoexcept

Definition at line 192 of file perf.cpp.

◆ dump_callback() [1/2]

zth_perf_dump_callback_t * zth::PerfBuffer::dump_callback ( ) const
inlinenoexcept

Definition at line 187 of file perf.cpp.

◆ dump_callback() [2/2]

void zth::PerfBuffer::dump_callback ( zth_perf_dump_callback_t f)
inlinenoexcept

Definition at line 182 of file perf.cpp.

◆ enabled()

bool zth::PerfBuffer::enabled ( ) const
inlinenoexcept

Definition at line 62 of file perf.cpp.

◆ full()

bool zth::PerfBuffer::full ( ) const
inlinenoexcept

Definition at line 108 of file perf.cpp.

◆ init()

int zth::PerfBuffer::init ( )
inlinenoexcept

Definition at line 72 of file perf.cpp.

◆ know()

void zth::PerfBuffer::know ( void *  x)
inlinenoexcept

Definition at line 228 of file perf.cpp.

◆ knows()

bool zth::PerfBuffer::knows ( void *  x) const
inlinenoexcept

Definition at line 223 of file perf.cpp.

◆ release()

void zth::PerfBuffer::release ( )
inlinenoexcept

Definition at line 155 of file perf.cpp.

◆ reserve()

char volatile * zth::PerfBuffer::reserve ( size_t  s)
inlinenoexcept

Definition at line 124 of file perf.cpp.

◆ running()

bool zth::PerfBuffer::running ( ) const
inlinenoexcept

Definition at line 218 of file perf.cpp.

◆ size()

size_t zth::PerfBuffer::size ( ) const
inlinenoexcept

Definition at line 94 of file perf.cpp.

◆ space()

size_t zth::PerfBuffer::space ( ) const
inlinenoexcept

Definition at line 99 of file perf.cpp.

◆ start()

void zth::PerfBuffer::start ( zth_perf_done_callback_t f = nullptr)
inlinenoexcept

Definition at line 202 of file perf.cpp.

◆ stop()

void zth::PerfBuffer::stop ( )
noexcept

Definition at line 282 of file perf.cpp.

◆ t() [1/2]

Timestamp const & zth::PerfBuffer::t ( ) const
inlinenoexcept

Definition at line 172 of file perf.cpp.

◆ t() [2/2]

void zth::PerfBuffer::t ( Timestamp const &  t)
inlinenoexcept

Definition at line 177 of file perf.cpp.


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