Initial commit
This commit is contained in:
13
backend/development/ALLOCATION.md
Normal file
13
backend/development/ALLOCATION.md
Normal file
@@ -0,0 +1,13 @@
|
||||
# Debug memory allocation
|
||||
|
||||
## Build test file
|
||||
- 100 MB file: `if=/dev/random of=TESTFILE status=progress bs=1m count=100`
|
||||
|
||||
## Steps
|
||||
|
||||
1. `cargo install --features vendored-openssl cargo-instruments`
|
||||
Installs _cargo-instruments_ without needing OpenSSL (macOS shenanigans -.-)
|
||||
2. `cargo instruments -t Allocations (--release)`
|
||||
3. Find PID
|
||||
4. `kill -SIGINT [PID]` to stop gracefully without interrupting cargo-instruments.
|
||||
5. XCode instrument _Allocations_ opens up automatically
|
||||
Reference in New Issue
Block a user