Profile latency and allocations with hotpath#956
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #956 +/- ##
=======================================
Coverage 89.94% 89.94%
=======================================
Files 66 66
Lines 12227 12227
=======================================
Hits 10997 10997
Misses 1230 1230 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
📦 Cargo Bloat ComparisonBinary size change: +0.00% (16.1 MiB → 16.1 MiB) Expand for cargo-bloat outputPR Branch ResultsBase Branch Results |
ccbde77 to
e660cfe
Compare
|
Hmmm I'm getting an error here but I added that feature to Cargo TOML
In other words it is failing because it is not merged (so would need to be merged to see it in action)! When it succeeds (blocked by this step) it should give a comment like the cargo-bloat one (uses the same mechanism) |
|
Thanks! But I'll put this on the back burner for now and come back to it after I wrap up some other higher priority stuff. |
|
Yes no urgency |
hotpath
# Conflicts: # Cargo.lock # src/cli/run/run.rs
|
Thank you! |
|
I don't think it's working correctly, will have a look into it later
|
* perf(hotpath): profile prek run on its own repo * Combine pr comments * Fix path --------- Co-authored-by: Jo <[email protected]>
* perf(hotpath): profile prek run on its own repo * Combine pr comments * Fix path --------- Co-authored-by: Jo <[email protected]>
Hotpath instrumentation
I've added
#[cfg_attr(feature = "hotpath", hotpath::measure)]to the main hot paths I think we care about:run()- the entry point forprek runcollect_files()- file discovery and filteringinstall_hooks()- hook environment setuprun_hooks()- overall hook executionrun_hook()- individual hook runsclone_repo()- repo cloningThe guard is initialised in
main()so profiling output prints when the program exits.Status: ready for review