iai_callgrind::client_requests::drd

Function trace_var

source
pub fn trace_var<T>(var: &T)
Available on crate feature client_requests_defs only.
Expand description

Tell DRD to trace all memory accesses for the specified variable until the memory that was allocated for the variable is freed.

When DRD reports a data race on a specified variable, and it’s not immediately clear which source code statements triggered the conflicting accesses, it can be very helpful to trace all activity on the offending memory location.