pkgs/top-level/metrics.nix: log out the statistics using jq with a header

This commit is contained in:
Philip Taron
2025-09-16 05:18:20 -07:00
parent 94f1da567e
commit b9519e2c0a
+4 -2
View File
@@ -56,9 +56,11 @@ stdenvNoCC.mkDerivation {
esac
# Show the Nix statistics and the `time` statistics.
cat "$nix_stats"
echo "Nix statistics for $@"
jq . "$nix_stats"
echo
cat "$time_stats"
echo "Time statistics for $@"
jq . "$time_stats"
echo
cpuTime="$(jq '.cpuTime' < "$nix_stats")"