diff tests/test-debugcommands.t @ 39980:d71e0ba34d9b

debugcommands: add a debugindexstats command Someone went through the trouble of recording these stats, so let's make them accessible. Differential Revision: https://phab.mercurial-scm.org/D4832
author Martin von Zweigbergk <martinvonz@google.com>
date Wed, 08 Aug 2018 23:17:16 -0700
parents 8d6ab33a61b2
children 8cf459d8b111
line wrap: on
line diff
--- a/tests/test-debugcommands.t	Mon Sep 24 19:23:50 2018 +0900
+++ b/tests/test-debugcommands.t	Wed Aug 08 23:17:16 2018 -0700
@@ -177,6 +177,16 @@
 debugdelta chain basic output
 
 #if reporevlogstore
+  $ hg debugindexstats
+  node trie capacity: 4
+  node trie count: 2
+  node trie depth: 1
+  node trie last rev scanned: -1
+  node trie lookups: 4
+  node trie misses: 1
+  node trie splits: 1
+  revs in memory: 3
+
   $ hg debugdeltachain -m
       rev  chain# chainlen     prev   delta       size    rawsize  chainsize     ratio   lindist extradist extraratio
         0       1        1       -1    base         44         43         44   1.02326        44         0    0.00000