480 B
480 B
Debug memory allocation
Build test file
- 100 MB file:
if=/dev/random of=TESTFILE status=progress bs=1m count=100
Steps
cargo install --features vendored-openssl cargo-instruments
Installs cargo-instruments without needing OpenSSL (macOS shenanigans -.-)cargo instruments -t Allocations (--release)- Find PID
kill -SIGINT [PID]to stop gracefully without interrupting cargo-instruments.- XCode instrument Allocations opens up automatically