Skip to content

feat(bench): add dhat heap profiling examples#49

Merged
bug-ops merged 1 commit intomainfrom
feat/dhat-profiling
Feb 6, 2026
Merged

feat(bench): add dhat heap profiling examples#49
bug-ops merged 1 commit intomainfrom
feat/dhat-profiling

Conversation

@bug-ops
Copy link
Copy Markdown
Owner

@bug-ops bug-ops commented Feb 6, 2026

Summary

  • Add dhat_extraction example for profiling heap allocations during TAR/ZIP extraction
  • Add dhat_creation example for profiling heap allocations during TAR/TAR.GZ/ZIP creation
  • Add dhat-heap.json to .gitignore
  • Remove unused lru dependency

Usage

cargo run -p exarch-core --example dhat_extraction --release -- zip
cargo run -p exarch-core --example dhat_creation --release -- tar

Open dhat-heap.json at https://nnethercote.github.io/dh_view/dh_view.html

Initial results (500 files x 1 KB)

Operation Total Allocated Peak Live
TAR extraction 33.2 MB 72 KB
ZIP extraction 44.4 MB 275 KB
TAR creation 326 KB 152 KB
ZIP creation 207.2 MB 827 KB

Test plan

  • cargo clippy passes
  • Both examples compile and run in release mode
  • Zero bytes at t-end (no memory leaks)

Add dhat_extraction and dhat_creation examples for heap allocation
profiling during archive operations. Remove unused lru dependency.
@github-actions github-actions bot added core Changes to exarch-core dependencies Dependency updates labels Feb 6, 2026
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #49      +/-   ##
==========================================
+ Coverage   90.08%   90.13%   +0.05%     
==========================================
  Files          61       57       -4     
  Lines       10013     9846     -167     
==========================================
- Hits         9020     8875     -145     
+ Misses        993      971      -22     
Flag Coverage Δ
exarch-python ?

Flags with carried forward coverage won't be shown. Click here to find out more.
see 4 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@bug-ops bug-ops merged commit a9d2767 into main Feb 6, 2026
20 checks passed
@bug-ops bug-ops deleted the feat/dhat-profiling branch February 6, 2026 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Changes to exarch-core dependencies Dependency updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants