Skip to main content

log_memory_usage

Function log_memory_usage 

Source
pub fn log_memory_usage(
    allocated_bytes: usize,
    peak_bytes: usize,
    context: &str,
)
Expand description

Log memory usage.

ยงArguments

  • allocated_bytes - Currently allocated bytes
  • peak_bytes - Peak allocation
  • context - Description of what operation is being tracked