Skip to content

Commit

Permalink
dev: Add development infos
Browse files Browse the repository at this point in the history
  • Loading branch information
its-laika committed Feb 1, 2025
1 parent ea69500 commit b0e7233
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Heavily wip and not feature complete
- [ ] Clean up code
- [ ] Tests
- [ ] Documentation
- [ ] Memory usage is pretty high. I believe flushing the files affects this and leads to memory peaks. Fix that.

## License
MIT
1 change: 1 addition & 0 deletions treasure_chest/development/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TESTFILE
13 changes: 13 additions & 0 deletions treasure_chest/development/ALLOCATION.md
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b0e7233

Please sign in to comment.