From b9519e2c0af72fe953c48cfa8e941d558219cfa2 Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Fri, 12 Sep 2025 13:04:37 -0700 Subject: [PATCH] pkgs/top-level/metrics.nix: log out the statistics using jq with a header --- pkgs/top-level/metrics.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/top-level/metrics.nix b/pkgs/top-level/metrics.nix index ba5de46f40ad..6bd2be765950 100644 --- a/pkgs/top-level/metrics.nix +++ b/pkgs/top-level/metrics.nix @@ -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")"