# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@octobus.net>
# Date 1541620674 -3600
#      Wed Nov 07 20:57:54 2018 +0100
# Node ID 6e8dcdd6b129d7ed4ff9db9d119782c98b87ae10
# Parent  f6b904f554deaf236d297b93cf37dcf69f788407
perfrevlogwrite: expose other data

For now, we only expose them for "full". It is the most meaningful case and
adding it for all option would be pretty verbose. Ideally I would like all
percentile to be exposed as variant of a single benchmark but the current setup
does not make it feasible.

This seems good enough for now.

diff --git a/benchmarks/others.py b/benchmarks/others.py
--- a/benchmarks/others.py
+++ b/benchmarks/others.py
@@ -171,6 +171,46 @@
         return self._run_one_full('--manifest', nbrev, 'storage',
                                   lazydeltabase=True)
 
+    @params_as_kwargs
+    def track_perfrevlogwrite_manifest_full_max(self, nbrev, *args, **kwargs):
+        return self._run_one_id('max of', '--manifest', nbrev, 'full',
+                                lazydeltabase=False)
+
+    @params_as_kwargs
+    def track_perfrevlogwrite_manifest_full_99percentile(self, nbrev, *args, **kwargs):
+        return self._run_one_id('99% of', '--manifest', nbrev, 'full',
+                                lazydeltabase=False)
+
+    @params_as_kwargs
+    def track_perfrevlogwrite_manifest_full_95percentile(self, nbrev, *args, **kwargs):
+        return self._run_one_id('95% of', '--manifest', nbrev, 'full',
+                                lazydeltabase=False)
+
+    @params_as_kwargs
+    def track_perfrevlogwrite_manifest_full_90percentile(self, nbrev, *args, **kwargs):
+        return self._run_one_id('90% of', '--manifest', nbrev, 'full',
+                                lazydeltabase=False)
+
+    @params_as_kwargs
+    def track_perfrevlogwrite_manifest_full_75percentile(self, nbrev, *args, **kwargs):
+        return self._run_one_id('75% of', '--manifest', nbrev, 'full',
+                                lazydeltabase=False)
+
+    @params_as_kwargs
+    def track_perfrevlogwrite_manifest_full_50percentile(self, nbrev, *args, **kwargs):
+        return self._run_one_id('50% of', '--manifest', nbrev, 'full',
+                                lazydeltabase=False)
+
+    @params_as_kwargs
+    def track_perfrevlogwrite_manifest_full_25percentile(self, nbrev, *args, **kwargs):
+        return self._run_one_id('25% of', '--manifest', nbrev, 'full',
+                                lazydeltabase=False)
+
+    @params_as_kwargs
+    def track_perfrevlogwrite_manifest_full_min(self, nbrev, *args, **kwargs):
+        return self._run_one_id('min of', '--manifest', nbrev, 'full',
+                                lazydeltabase=False)
+
 class ManifestPerfTestSuite(BaseTestSuite):
     params = BaseTestSuite.params + [['persist', 'clear']]
     param_names = BaseTestSuite.param_names + ['disk_cache']