Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Public Attributes | List of all members
wslua_logpoint_context_t Struct Reference

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
 

Detailed Description

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:

Member Data Documentation

◆ delta_ms

int64_t wslua_logpoint_context_t::delta_ms

{delta}: ms since this bp last fired

◆ depth

int wslua_logpoint_context_t::depth

{depth}: Lua frame count

◆ elapsed_ms

int64_t wslua_logpoint_context_t::elapsed_ms

{elapsed}: ms since debugger attached

◆ file_path

const char* wslua_logpoint_context_t::file_path

{filename} / source of {basename}

◆ fn_name

const char* wslua_logpoint_context_t::fn_name

{function}: may be NULL

◆ fn_what

const char* wslua_logpoint_context_t::fn_what

{what}: "Lua"/"C"/"main"/"tail"/NULL

◆ hit_count

int64_t wslua_logpoint_context_t::hit_count

{hits}

◆ is_main_thread

bool wslua_logpoint_context_t::is_main_thread

{thread}: true => "main"

◆ line

int64_t wslua_logpoint_context_t::line

{line}

◆ thread_ptr

const void* wslua_logpoint_context_t::thread_ptr

{thread}: coroutine id when not main


The documentation for this struct was generated from the following file: