ascii-chat 0.6.0
Real-time terminal-based video chat with ASCII art conversion
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.
 

Typedefs

typedef struct asciichat_instr_runtime asciichat_instr_runtime_t
 Opaque runtime context for instrumentation logging.
 

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_tasciichat_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_shutdown (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.