#include <guanaqo/trace.hpp>
Class for recording trace logs, used when ITT or Perfetto tracing is not enabled.
Definition at line 136 of file trace.hpp.
|
| using | clock = std::chrono::steady_clock |
|
| | TraceLogger (size_t capacity) |
| ScopedLog | trace (const char *name, int64_t instance, int64_t flop_count=-1) |
| void | trace_instant (const char *name, int64_t instance, int64_t flop_count=-1) |
| std::span< const Log > | get_logs () const |
| void | reserve (size_t capacity) |
| | Set the maximum number of logs that can be recorded. Additional logs are discarded.
|
| void | reset () |
| | Clear all recorded logs, but keep the reserved capacity.
|
| void | clear () |
| | Clear all recorded logs and set capacity to 0 (essentially disabling the logger).
|
|
| static clock::time_point | t0 = clock::now() |
◆ clock
◆ TraceLogger()
| guanaqo::TraceLogger::TraceLogger |
( |
size_t | capacity | ) |
|
|
inline |
◆ write_column_headings()
| std::ostream & guanaqo::TraceLogger::write_column_headings |
( |
std::ostream & | os | ) |
|
|
inlinestatic |
◆ trace()
| ScopedLog guanaqo::TraceLogger::trace |
( |
const char * | name, |
|
|
int64_t | instance, |
|
|
int64_t | flop_count = -1 ) |
|
inlinenodiscard |
◆ trace_instant()
| void guanaqo::TraceLogger::trace_instant |
( |
const char * | name, |
|
|
int64_t | instance, |
|
|
int64_t | flop_count = -1 ) |
|
inline |
◆ get_logs()
| std::span< const Log > guanaqo::TraceLogger::get_logs |
( |
| ) |
const |
|
inlinenodiscard |
◆ reserve()
| void guanaqo::TraceLogger::reserve |
( |
size_t | capacity | ) |
|
|
inline |
Set the maximum number of logs that can be recorded. Additional logs are discarded.
Definition at line 208 of file trace.hpp.
◆ reset()
| void guanaqo::TraceLogger::reset |
( |
| ) |
|
|
inline |
Clear all recorded logs, but keep the reserved capacity.
Definition at line 210 of file trace.hpp.
◆ clear()
| void guanaqo::TraceLogger::clear |
( |
| ) |
|
|
inline |
Clear all recorded logs and set capacity to 0 (essentially disabling the logger).
Definition at line 212 of file trace.hpp.
◆ t0
| TraceLogger::clock::time_point guanaqo::TraceLogger::t0 = clock::now() |
|
static |
◆ logs
| std::vector<Log> guanaqo::TraceLogger::logs |
The documentation for this struct was generated from the following files: