summary refs log tree commit diff
path: root/pkgs/top-level/metrics.nix
diff options
context:
space:
mode:
authorJan Malakhovski <oxij@oxij.org>2019-02-22 16:59:29 +0000
committerJan Malakhovski <oxij@oxij.org>2019-02-22 16:59:29 +0000
commit36aa5b691d50f156244647415596327f7646e2dc (patch)
treee7a4af4e4be87d11e14618e283fc41306fa10f8a /pkgs/top-level/metrics.nix
parent828759f9b844a042a25d9ae1cbdee6ca33224257 (diff)
downloadnixpkgs-36aa5b691d50f156244647415596327f7646e2dc.tar
nixpkgs-36aa5b691d50f156244647415596327f7646e2dc.tar.gz
nixpkgs-36aa5b691d50f156244647415596327f7646e2dc.tar.bz2
nixpkgs-36aa5b691d50f156244647415596327f7646e2dc.tar.lz
nixpkgs-36aa5b691d50f156244647415596327f7646e2dc.tar.xz
nixpkgs-36aa5b691d50f156244647415596327f7646e2dc.tar.zst
nixpkgs-36aa5b691d50f156244647415596327f7646e2dc.zip
metrics.nix: add nix-env.qaCountDrv metric
Before ae16dd1a15dfbe29c6a1de61c4cc23e2cd6487f0 `nix-env.qaCount` and
`nix-env.qaCountDrv` were equivalent, after that change that is no longer
the case so this needs a separate metric now.
Diffstat (limited to 'pkgs/top-level/metrics.nix')
-rw-r--r--pkgs/top-level/metrics.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/top-level/metrics.nix b/pkgs/top-level/metrics.nix
index c4253973cbb..d9cf985e41f 100644
--- a/pkgs/top-level/metrics.nix
+++ b/pkgs/top-level/metrics.nix
@@ -55,6 +55,9 @@ runCommand "nixpkgs-metrics"
     num=$(nix-env -f ${nixpkgs} -qa | wc -l)
     echo "nix-env.qaCount $num" >> $out/nix-support/hydra-metrics
 
+    num=$(nix-env -f ${nixpkgs} -qa --drv-path | wc -l)
+    echo "nix-env.qaCountDrv $num" >> $out/nix-support/hydra-metrics
+
     # TODO: this has been ignored for some time
     # GC Warning: Bad initial heap size 128k - ignoring it.
     #export GC_INITIAL_HEAP_SIZE=128k