-
Notifications
You must be signed in to change notification settings - Fork 454
pkg: add chrome tracing stat events #12724
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
The CI errors are from the recent portable lock directories. Might be worth noticing we are doing 4x the work in some places. |
|
The concept is very useful and I agree it would be nice to have more insight to see what we're spending our time on. I think something that is missing is an event that measures how long it takes us to set up Is there a way to make this whole thing a bit less "boilerplate-y"? I know some noise is going to be expected but the creation of events is fairly boilerplate-y. Maybe Likewise, maybe one could create a custom |
|
@Leonidas-from-XIV Regarding boiler plate, the answer is yes. I've developed some helpers to better integrate with our various usage points. I can introduce them in this PR but only for the events I am adding as changing existing events will be more noise. |
|
Yes, introducing them in this PR only for the events here sounds like the best way to go about it. We can update the other ones in an additional |
9e469fd to
63083a2
Compare
|
I've introduced some helpers and gone with the let bindings. I've opted for |
cedd488 to
6a99d73
Compare
We add some more chrome tracing events to various pkg related areas. In order to do this ergonomically, we inroduce some convenience wrappers for `Dune_stat` which appear to be quite pleasant to use. Signed-off-by: Ali Caglayan <[email protected]>
6a99d73 to
78b721b
Compare
| module Memo : sig | ||
| module O : sig | ||
| val ( let& ) : event_data -> (unit -> 'a Memo.t) -> 'a Memo.t | ||
| end | ||
| end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I intend to remove this, need to think a bit more about how we are stating at its call sites.
We add some more chrome tracing events to various pkg related areas. In order to do this ergonomically, we introduce some convenience wrappers for
Dune_statwhich appear to be quite pleasant to use.cat:sys_pollname:makecat:opam_reponame:load_all_versions_by_keys(this needs a better name)cat:solvername:repo_candidatename:build_problemname:solve_package_listcat:lock_dirname:write_lock_dir(these don't match the code names)name:load_lock_dircat:fetchname:dune-fetch(needs rename)name:extractcat:pkg_rulesname:setup