|
Zth (libzth)
|
#include <libzth/macros.h>#include <libzth/allocator.h>#include <libzth/config.h>#include <libzth/time.h>#include <libzth/util.h>#include <cstdio>#include <cstdlib>#include <cstring>Go to the source code of this file.
Classes | |
| class | zth::Backtrace |
| Save a backtrace. More... | |
| struct | zth::PerfEvent< Enable > |
| An event to be processed by perf_event(). More... | |
| struct | zth::PerfEvent< false > |
| 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... | |
Namespaces | |
| zth | |
Macros | |
| #define | zth_perf_event(...) |
| Construct a zth::PerfEvent with provided parameters, and forward it to the perf buffer for later processing. More... | |
| #define | zth_perf_mark(marker) |
| Put a string marker into the perf output. More... | |
Typedefs | |
| typedef vector_type< PerfEvent<> >::type | zth::perf_eventBuffer_type |
Functions | |
| int | zth::perf_init () |
| void | zth::perf_deinit () |
| UniqueID< Fiber > const & | zth::currentFiberID () noexcept |
| void | zth::perf_flushEventBuffer () noexcept |
| template<typename... Args> | |
| void | zth::perf_event (Args &&... args) noexcept |
| 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... | |
| void | zth::perf_syscall (char const *syscall, Timestamp const &t=Timestamp()) |
| Put a syscall into the perf output. More... | |
| void | zth_perf_mark_ (char const *marker) |
| 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... | |
Variables | |
| __thread perf_eventBuffer_type * | zth::perf_eventBuffer = nullptr |