Zth (libzth)

Classes

class  zth::Backtrace
 Save a backtrace. More...
 
struct  zth::PerfEvent< Enable >
 An event to be processed by perf_event(). More...
 
class  zth::Load< T >
 Measure the load of some activity. More...
 
class  zth::EventRate< T, Bins, Count >
 Measure the rate of some event in Hz. More...
 

Macros

#define zth_perf_event(...)
 Construct a zth::PerfEvent with provided parameters, and forward it to the perf buffer for later processing. More...
 

Functions

void zth::perf_mark (char const *marker)
 Put a string marker into the perf output. More...
 
void zth::perf_log (char const *fmt,...)
 Put a formatted log string into the perf output. More...
 
void zth::perf_logv (char const *fmt, va_list args)
 Put a formatted log string into the perf output. More...
 

Detailed Description

This module allows generating a VCD file (in the current working directory), which tracks scheduling behavior of the application.

Macro Definition Documentation

◆ zth_perf_event

#define zth_perf_event (   ...)

Construct a zth::PerfEvent with provided parameters, and forward it to the perf buffer for later processing.

Definition at line 292 of file perf.h.

Function Documentation

◆ perf_log()

void zth::perf_log ( char const *  fmt,
  ... 
)
inline

Put a formatted log string into the perf output.

Examples
5_perf.cpp.

Definition at line 334 of file perf.h.

◆ perf_logv()

void zth::perf_logv ( char const *  fmt,
va_list  args 
)
inline

Put a formatted log string into the perf output.

Definition at line 350 of file perf.h.

◆ perf_mark()

void zth::perf_mark ( char const *  marker)
inline

Put a string marker into the perf output.

Examples
5_perf.cpp.

Definition at line 324 of file perf.h.