|
guanaqo
1.0.0-alpha.28
Utilities for scientific software
|
Tracing logger and macros (ITT, Perfetto, or fallback).
Definition in file trace.hpp.
#include <guanaqo/export.h>#include <guanaqo/perfetto/trace.hpp>#include <guanaqo/preprocessor.h>#include <guanaqo/stringify.h>#include <concepts>#include <functional>#include <memory>#include <span>#include <utility>#include <chrono>#include <cstddef>#include <cstdint>#include <iomanip>#include <ostream>Go to the source code of this file.
Classes | |
| struct | guanaqo::TraceLogger |
| Class for recording trace logs, used when ITT or Perfetto tracing is not enabled. More... | |
| struct | guanaqo::TraceLogger::Log |
| struct | guanaqo::TraceLogger::ScopedLog |
Namespaces | |
| namespace | guanaqo |
Macros | |
| #define | GUANAQO_IF_ITT(...) |
Functions | |
| std::size_t | guanaqo::get_thread_id () |
| TraceLogger & | guanaqo::get_trace_logger () |
| Get a reference to the global (but thread-local) trace logger instance. | |
| size_t | guanaqo::trace_logger_set_default_size (size_t size) |
| Set the default capacity for trace loggers created by get_trace_logger(). | |
| void | guanaqo::for_each_trace_logger (const std::function< void(TraceLogger &)> &callback) |
Call callback for each trace logger instance. | |
| void | guanaqo::drop_trace_loggers (const std::function< void(std::shared_ptr< TraceLogger >)> &callback=nullptr) |
| Like for_each_trace_logger, but also forgets about all loggers. | |