-
-
Notifications
You must be signed in to change notification settings - Fork 165
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
Capture Nix stats during eval #67
Comments
Yeah, I'd like to say exactly how a PR changed nixpkgs's evaluation stats during evaluation time. This way we can spot big increases, and celebrate decreases. I suppose I could look at how Hydra captures this data. |
Oh, right, even before merging :-) Timings might not be stable enough, but the counts should be sufficient to spot significant regressions. |
This all started, btw, because I had to bump the initial heap from the default to 4g the other day, and I'd like to catch future big jumps before ofborg is suddenly failing on master. |
Flattens the list of statistics as suggested in NixOS/ofborg#67. This makes it easier to work with.
It would be great to track the Nix evaluation stats over time. An example of these stats are as follows:
However, to avoid some ad-hoc parsing of this data, it would be nice if this information could be written out to a separate file, perhaps provided by an environment variable, like
NIX_WRITE_STATS=/tmp/nix-eval-stats
.Additionally, it would be cool if it was a bit more simple:
The code is here: https://github.com/NixOS/nix/blob/master/src/libexpr/eval.cc#L1700
The text was updated successfully, but these errors were encountered: