heapdump_vmo::stack_trace_compression

Function max_compressed_size

Source
pub const fn max_compressed_size(num_frames: usize) -> usize
Expand description

Given the size of an uncompressed stack trace (expressed as the number of stack frames), returns an upper bound of its compressed size.