|
Wireshark 4.7.0
The Wireshark network protocol analyzer
|
Per-fire context handed to the logpoint formatter. More...
Public Attributes | |
| const char * | file_path |
| int64_t | line |
| int64_t | hit_count |
| int64_t | delta_ms |
| int64_t | elapsed_ms |
| const char * | fn_name |
| const char * | fn_what |
| int | depth |
| bool | is_main_thread |
| const void * | thread_ptr |
Per-fire context handed to the logpoint formatter.
All fields are snapshots captured at the moment the logpoint fires; the formatter never reads any live debugger state, so the line hook can pre-compute under the mutex and pass the values through.
Fields that aren't applicable on a given fire degrade gracefully:
fn_name may be NULL (rendered as the empty string).fn_what may be NULL (rendered as the empty string).delta_ms / elapsed_ms are 0 when no reference timestamp is available yet (first fire / debugger start).is_main_thread true means thread_ptr is unused. | int64_t wslua_logpoint_context_t::delta_ms |
{delta}: ms since this bp last fired
| int wslua_logpoint_context_t::depth |
{depth}: Lua frame count
| int64_t wslua_logpoint_context_t::elapsed_ms |
{elapsed}: ms since debugger attached
| const char* wslua_logpoint_context_t::file_path |
{filename} / source of {basename}
| const char* wslua_logpoint_context_t::fn_name |
{function}: may be NULL
| const char* wslua_logpoint_context_t::fn_what |
{what}: "Lua"/"C"/"main"/"tail"/NULL
| int64_t wslua_logpoint_context_t::hit_count |
{hits}
| bool wslua_logpoint_context_t::is_main_thread |
{thread}: true => "main"
| int64_t wslua_logpoint_context_t::line |
{line}
| const void* wslua_logpoint_context_t::thread_ptr |
{thread}: coroutine id when not main