WIP: irmin-pack.unix: Measure IO activity.#2250
WIP: irmin-pack.unix: Measure IO activity.#2250adatario wants to merge 3 commits intomirage:mainfrom
Conversation
06bab22 to
530ed0e
Compare
| usage is safe. *) | ||
| let buf = Bytes.unsafe_of_string s in | ||
| let () = Util.really_write t.fd off buf 0 len in | ||
| Index.Stats.add_write len; |
There was a problem hiding this comment.
I just remembered that the stats here are used as a quick and dirty way to aggregate IO activity for the benchmark summary.
We need to double check the "official" summary printer but you can see how it is used for the bench/irmin-pack tree replay.
irmin/bench/irmin-pack/trace_stat_summary_pp.ml
Lines 384 to 390 in 1f046dd
I am definitely in favor of cleaning this up and making it more clear that these are not "index" stats. Perhaps your new Io stats can help the summary aggregate the index activity as well.
This seems to be remnant from before `index` was split into its own repository.
Codecov Report
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. @@ Coverage Diff @@
## main #2250 +/- ##
==========================================
- Coverage 68.15% 68.09% -0.07%
==========================================
Files 137 137
Lines 16669 16692 +23
==========================================
+ Hits 11361 11366 +5
- Misses 5308 5326 +18
... and 3 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
This adds counters that meassure i/o activity at file level.