Make Nix eval stats more easily machine-parsable #1858
Labels
error-messages
Confusing messages and better diagnostics
language
The Nix expression language; parser, interpreter, primops, evaluation, etc
UX
The way in which users interact with Nix. Higher level than UI.
The following is a cross-post issue from NixOS/ofborg#67.
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
Hydra implements the metric gathering using a call inside a nix-build (https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/metrics.nix#L22) , however the ofborg evaluator doesn't build anything at all (and I'd like to keep it that way.)
The text was updated successfully, but these errors were encountered: