# HG changeset patch
# User Boris Feld <boris.feld@octobus.net>
# Date 1544089110 -3600
#      Thu Dec 06 10:38:30 2018 +0100
# Node ID 74ee5ff1e81c46ec2acb513eedba5a6742b5f055
# Parent  f6187e60f79232cb647004417bc2aa11091f22d2
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.

diff --git a/contrib/perf.py b/contrib/perf.py
--- a/contrib/perf.py
+++ b/contrib/perf.py
@@ -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: