track_static_access

Function track_static_access 

Source
pub fn track_static_access(
    var_id: usize,
    var_name: &str,
    is_write: bool,
    location: &str,
)
Expand description

Track static variable access (read or write).

Records a StaticAccess event. Use this when reading from or writing to a static variable.

§Arguments

  • var_id - Identifier of the static variable
  • var_name - Name of the static variable
  • is_write - true for writes, false for reads
  • location - Source location (e.g., “file.rs:42”)