Skip to content
Snippets Groups Projects
Commit 3a855a19 authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

benchmark: also track the `slice-sparse-chain` section of `perfrevlogrevision`

This section is optional, so we needed a bit more logic.
parent 454a2b73
No related branches found
No related tags found
No related merge requests found
......@@ -256,3 +256,10 @@
return float('nan')
return data["deltachain"].get('median', float('nan'))
@params_as_kwargs
def track_slice(self, *args, **kwargs):
cmd = ["perfrevlogrevision", "--manifest", "--", "-1"]
data = self.getperfdata((-1,), cmd)
if data is None or 'slice-sparse-chain' not in data:
return float('nan')
return data["slice-sparse-chain"].get('median', float('nan'))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment