Zth (libzth)
zth::PerfEvent< false > Struct Reference

#include <perf.h>

Public Types

enum  Type {
  Nothing , FiberName , FiberState , Log ,
  Marker
}
 

Public Member Functions

constexpr PerfEvent () noexcept
 
constexpr PerfEvent (UniqueID< Fiber > const &fiber) noexcept
 
constexpr PerfEvent (UniqueID< Fiber > const &fiber, int state, Timestamp const &t=Timestamp()) noexcept
 
constexpr PerfEvent (UniqueID< Fiber > const &fiber, string const &str, Timestamp const &t=Timestamp()) noexcept
 
constexpr PerfEvent (UniqueID< Fiber > const &fiber, char const *marker, Timestamp const &t=Timestamp()) noexcept
 
constexpr PerfEvent (UniqueID< Fiber > const &fiber, Timestamp const &t, char const *fmt,...) noexcept
 
 PerfEvent (UniqueID< Fiber > const &fiber, Timestamp const &t, char const *fmt, va_list args) noexcept
 
void release () const noexcept
 

Public Attributes

union zth::PerfEvent< false >:: { ... }  
 
void * unused
 
struct timespec t
 
uint64_t fiber
 
Type type
 
char * str
 
char const * c_str
 
int fiberState
 

Detailed Description

Definition at line 202 of file perf.h.

Member Enumeration Documentation

◆ Type

enum zth::PerfEvent< false >::Type
Enumerator
Nothing 
FiberName 
FiberState 
Log 
Marker 

Definition at line 203 of file perf.h.

Constructor & Destructor Documentation

◆ PerfEvent() [1/7]

constexpr zth::PerfEvent< false >::PerfEvent ( )
inlineconstexprnoexcept

Definition at line 205 of file perf.h.

◆ PerfEvent() [2/7]

constexpr zth::PerfEvent< false >::PerfEvent ( UniqueID< Fiber > const &  fiber)
inlineexplicitconstexprnoexcept

Definition at line 209 of file perf.h.

◆ PerfEvent() [3/7]

constexpr zth::PerfEvent< false >::PerfEvent ( UniqueID< Fiber > const &  fiber,
int  state,
Timestamp const &  t = Timestamp() 
)
inlineconstexprnoexcept

Definition at line 213 of file perf.h.

◆ PerfEvent() [4/7]

constexpr zth::PerfEvent< false >::PerfEvent ( UniqueID< Fiber > const &  fiber,
string const &  str,
Timestamp const &  t = Timestamp() 
)
inlineconstexprnoexcept

Definition at line 218 of file perf.h.

◆ PerfEvent() [5/7]

constexpr zth::PerfEvent< false >::PerfEvent ( UniqueID< Fiber > const &  fiber,
char const *  marker,
Timestamp const &  t = Timestamp() 
)
inlineconstexprnoexcept

Definition at line 224 of file perf.h.

◆ PerfEvent() [6/7]

constexpr zth::PerfEvent< false >::PerfEvent ( UniqueID< Fiber > const &  fiber,
Timestamp const &  t,
char const *  fmt,
  ... 
)
inlineconstexprnoexcept

Definition at line 230 of file perf.h.

◆ PerfEvent() [7/7]

zth::PerfEvent< false >::PerfEvent ( UniqueID< Fiber > const &  fiber,
Timestamp const &  t,
char const *  fmt,
va_list  args 
)
inlinenoexcept

Definition at line 235 of file perf.h.

Member Function Documentation

◆ release()

void zth::PerfEvent< false >::release ( ) const
inlinenoexcept

Definition at line 241 of file perf.h.

Member Data Documentation

◆ 

union { ... }

◆ c_str

char const* zth::PerfEvent< false >::c_str

Definition at line 249 of file perf.h.

◆ fiber

uint64_t zth::PerfEvent< false >::fiber

Definition at line 246 of file perf.h.

◆ fiberState

int zth::PerfEvent< false >::fiberState

Definition at line 250 of file perf.h.

◆ str

char* zth::PerfEvent< false >::str

Definition at line 248 of file perf.h.

◆ t

struct timespec zth::PerfEvent< false >::t

Definition at line 244 of file perf.h.

◆ type

Type zth::PerfEvent< false >::type

Definition at line 247 of file perf.h.

◆ unused

void* zth::PerfEvent< false >::unused

Definition at line 244 of file perf.h.


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