iai_callgrind::client_requests::valgrind

Function stack_change

source
pub fn stack_change(stack_id: StackId, start: usize, end: usize)
Available on crate feature client_requests_defs only.
Expand description

Change the start and end address of the StackId

start is the new lowest addressable stack byte, end is the new highest addressable stack byte.

Changes a previously registered stack. Informs Valgrind that the previously registered stack with StackId has changed its start and end values. Use this if your user-level thread package implements stack growth.

Warning: Unfortunately, this client request is unreliable and best avoided.