Unverified Commit b9519e2c authored by Philip Taron's avatar Philip Taron
Browse files

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

parent 94f1da56
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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")"