![]() |
Project
|
#include "Framework/CompilerBuiltins.h"
#include <atomic>
#include <array>
#include <cassert>
#include <cinttypes>
#include <cstddef>
Go to the source code of this file.
Classes | |
struct | o2_log_handle_t |
struct | _o2_lock_free_stack |
struct | _o2_activity_t |
struct | _o2_signpost_id_t |
struct | _o2_log_t |
Typedefs | |
using | _o2_signpost_index_t = int |
#define O2_DECLARE_DYNAMIC_LOG | ( | name | ) | static _o2_log_t* private_o2_log_##name = (_o2_log_t*)_o2_log_create("ch.cern.aliceo2." #name, 1) |
Dynamic logs need to be enabled via the O2_LOG_ENABLE macro. Notice this will only work for the logger based logging, since the Apple version needs instruments to enable them.
Definition at line 489 of file Signpost.h.
#define O2_DECLARE_DYNAMIC_STACKTRACE_LOG | ( | name | ) | static _o2_log_t* private_o2_log_##name = (_o2_log_t*)_o2_log_create("ch.cern.aliceo2." #name, 64) |
For the moment we do not support logs with a stacktrace.
Definition at line 491 of file Signpost.h.
#define O2_DECLARE_LOG | ( | name, | |
category | |||
) | static _o2_log_t* private_o2_log_##name = (_o2_log_t*)_o2_log_create("ch.cern.aliceo2." #name, 1) |
Definition at line 492 of file Signpost.h.
#define O2_DECLARE_LOG_MAC | ( | x, | |
category | |||
) |
Definition at line 100 of file Signpost.h.
#define O2_LOG_DEBUG | ( | log, | |
... | |||
) |
Definition at line 498 of file Signpost.h.
#define O2_LOG_DEBUG_MAC | ( | log, | |
... | |||
) |
Definition at line 101 of file Signpost.h.
#define O2_LOG_DISABLE | ( | log | ) | _o2_log_set_stacktrace(private_o2_log_##log, 0) |
Definition at line 495 of file Signpost.h.
#define O2_LOG_ENABLE | ( | log | ) | _o2_log_set_stacktrace(private_o2_log_##log, private_o2_log_##log->defaultStacktrace) |
Definition at line 494 of file Signpost.h.
#define O2_LOG_ENABLED | ( | log | ) | private_o2_log_##log->stacktrace |
Definition at line 110 of file Signpost.h.
#define O2_LOG_MACRO | ( | ... | ) |
Definition at line 136 of file Signpost.h.
Definition at line 121 of file Signpost.h.
#define O2_SIGNPOST_ACTION | ( | log, | |
callback | |||
) |
Definition at line 510 of file Signpost.h.
#define O2_SIGNPOST_ENABLED_MAC | ( | log | ) | false |
Definition at line 105 of file Signpost.h.
Definition at line 608 of file Signpost.h.
Definition at line 104 of file Signpost.h.
Definition at line 522 of file Signpost.h.
Definition at line 583 of file Signpost.h.
Definition at line 573 of file Signpost.h.
Definition at line 542 of file Signpost.h.
Definition at line 553 of file Signpost.h.
Definition at line 593 of file Signpost.h.
Definition at line 531 of file Signpost.h.
Definition at line 102 of file Signpost.h.
Definition at line 563 of file Signpost.h.
#define O2_SIGNPOST_ID_FROM_POINTER | ( | name, | |
log, | |||
pointer | |||
) | _o2_signpost_id_t name = _o2_signpost_id_make_with_pointer(private_o2_log_##log, pointer) |
Definition at line 505 of file Signpost.h.
#define O2_SIGNPOST_ID_GENERATE | ( | name, | |
log | |||
) | _o2_signpost_id_t name = _o2_signpost_id_generate_local(private_o2_log_##log) |
Definition at line 506 of file Signpost.h.
Definition at line 602 of file Signpost.h.
Definition at line 103 of file Signpost.h.
using _o2_signpost_index_t = int |
Definition at line 162 of file Signpost.h.
bool _o2_lock_free_stack_pop | ( | _o2_lock_free_stack & | stack, |
int & | value, | ||
bool | spin = false |
||
) |
bool _o2_lock_free_stack_push | ( | _o2_lock_free_stack & | stack, |
const int & | value, | ||
bool | spin = false |
||
) |
Definition at line 214 of file Signpost.h.
void _o2_signpost_event_emit | ( | _o2_log_t * | log, |
_o2_signpost_id_t | id, | ||
char const * | name, | ||
char const *const | format, | ||
... | |||
) |
|
inline |
Definition at line 226 of file Signpost.h.
|
inline |
Definition at line 233 of file Signpost.h.
void _o2_signpost_interval_begin | ( | _o2_log_t * | log, |
_o2_signpost_id_t | id, | ||
char const * | name, | ||
char const *const | format, | ||
... | |||
) |
void _o2_signpost_interval_end | ( | _o2_log_t * | log, |
_o2_signpost_id_t | id, | ||
char const * | name, | ||
char const *const | format, | ||
... | |||
) |
std::atomic< o2_log_handle_t * > & o2_get_logs_tail | ( | ) |
o2_log_handle_t * o2_walk_logs | ( | bool(*)(char const *name, void *log, void *context) | callback, |
void * | context = nullptr |
||
) |
consteval auto remove_engineering_type | ( | char const (&) | src[N] | ) |
Definition at line 30 of file Signpost.h.