ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
instrument_log.h File Reference

🔍 Debug instrumentation logging runtime for ascii-chat line tracing More...

Go to the source code of this file.

Macros

#define ASCII_INSTR_SOURCE_PRINT_SIGNAL_HANDLER
 Attribute to mark signal handler functions.

Enumerations

enum  { ASCII_INSTR_SOURCE_PRINT_MACRO_NONE = 0u , ASCII_INSTR_SOURCE_PRINT_MACRO_EXPANSION = 1u , ASCII_INSTR_SOURCE_PRINT_MACRO_INVOCATION = 2u }
 Macro expansion indicator values for asciichat_instr_log_line(). More...

Functions

asciichat_instr_runtime_t * asciichat_instr_runtime_get (void)
 Get or create the thread-local runtime context.
void asciichat_instr_runtime_destroy (asciichat_instr_runtime_t *runtime)
 Destroy a runtime context and release resources.
void asciichat_instr_runtime_global_destroy (void)
 Global shutdown of the instrumentation system.
void asciichat_instr_log_line (const char *file_path, uint32_t line_number, const char *function_name, const char *snippet, uint8_t is_macro_expansion)
 Log a source line execution event.
bool asciichat_instr_coverage_enabled (void)
 Check if coverage logging is enabled.
void asciichat_instr_log_pc (uintptr_t program_counter)
 Log a program counter for coverage analysis.

Detailed Description

🔍 Debug instrumentation logging runtime for ascii-chat line tracing

Definition in file instrument_log.h.