iai_callgrind::client_requests::dhat

Function histogram_memory

source
pub fn histogram_memory(addr: *const ())
Available on crate feature client_requests_defs only.
Expand description

For access to count histograms of memory larger than 1k

The size of the blocks that measure and display access counts is limited to 1024 bytes. This is done to limit the performance overhead and also to keep the size of the generated output reasonable. However, it is possible to override this limit using this client request. The use-case for this is to first run DHAT normally, and then identify any large blocks that you would like to further investigate with access count histograms. The function call should be placed immediately after the call to the allocator, and use the pointer returned by the allocator.

See also Access Counts