pub fn track_drop_batch(names: &[&str])Expand description
Track multiple drops in batch (optimized).
Records multiple Drop events efficiently with a single lock acquisition.
Use this when multiple variables go out of scope simultaneously.
§Arguments
names- Slice of variable names being dropped
§Examples
let a = track_new("a", 1);
let b = track_new("b", 2);
let c = track_new("c", 3);
// All go out of scope together
track_drop_batch(&["a", "b", "c"]);
let events = get_events();
assert_eq!(events.len(), 6); // 3 New + 3 Drop