perf: report more of the higher range in perfrevlogwrite
authorBoris Feld <boris.feld@octobus.net>
Thu, 06 Dec 2018 10:38:30 +0100
changeset 40969 74ee5ff1e81c
parent 40968 f6187e60f792
child 40970 f960c51eebf3
perf: report more of the higher range in perfrevlogwrite Since the delta chain length is limited to 1000 revisions, we get a new snapshot about every 1000 revisions. If we assume that the snapshot will be most of the slowest revision, the current display (99% and max) are not very precise in their area. We now include more information about this space in the default report.
contrib/perf.py
--- a/contrib/perf.py	Fri Dec 14 13:44:46 2018 -0800
+++ b/contrib/perf.py	Thu Dec 06 10:38:30 2018 +0100
@@ -1797,6 +1797,9 @@
         ("90%", resultcount * 90 // 100),
         ("95%", resultcount * 95 // 100),
         ("99%", resultcount * 99 // 100),
+        ("99.9%", resultcount * 999 // 1000),
+        ("99.99%", resultcount * 9999 // 10000),
+        ("99.999%", resultcount * 99999 // 100000),
         ("max", -1),
     ]
     if not ui.quiet: