-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Collect build time statistics #1710
Comments
Hydra does collect build duration, but how to use it?
But we don't know number of cores, parallelism and CPU frequency of builder machine. Maybe Local collector would be also great, for both successful builds and failed ones. |
Yes, collecting stats like user+sys time is the best suggestion so far. I doubt there's something noticeably better that's easy to do, at least in the way Hydra.nixos.org looks (quite diverse). EDIT: for good usability, we'd need to think of API exposing such meta-data via binary cache. Then |
Some other statistics that might be useful:
|
I love the last idea! To be a bit more precise, you could actually annotate every output line with a timestamp and then with the benefit of hindsight say "after 10% of the build time the builder hat produced 1000 lines". That would cover the case where for example the actual build is relatively quiet but the install phase spews a lot of information. |
It would be very useful if that information was attached to the .narinfo file. |
I marked this as stale due to inactivity. → More info |
I'm still interested in this happening |
I marked this as stale due to inactivity. → More info |
Annoying bot; this is important. |
This could probably be bolted on using the |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/measure-elapsed-time-in-phases-successful-or-not/21161/1 |
@fricklerhandwerk I don't see how this is related to error messages? |
Probably a random mistake, I went through issues fairly quickly. |
I've often found myself wanting to know how long a derivation took to build. The closest I've found to this has been using
stat /nix/var/log/nix/drvs/xx/xx[…]-foo-bar.drv
and subtracting the atime from the mtime. This is very brittle, however, and I think it would be nice for nix to record this information somewhere. Does this perhaps already exist? Any thoughts on the idea or implementation?The text was updated successfully, but these errors were encountered: