# HG changeset patch # User Pierre-Yves David # Date 1558445208 -7200 # Node ID 3293086ff66326d423e124a5f9ea7076fb0b685d # Parent 563cd9a726826e0318bde9fb588b761a404b8d56 perf: add an option to profile the benchmark section Running a perf command with --profile gather data for the whole command execution, including setup and cleanup. This can significantly alter the data. To work around this we introduce a new option, it trigger the profiling of only one iteration of the benchmarked section. diff -r 563cd9a72682 -r 3293086ff663 contrib/perf.py --- a/contrib/perf.py Tue May 21 15:08:06 2019 +0200 +++ b/contrib/perf.py Tue May 21 15:26:48 2019 +0200 @@ -18,6 +18,10 @@ ``pre-run`` number of run to perform before starting measurement. +``profile-benchmark`` + Enable profiling for the benchmarked section. + (The first iteration is benchmarked) + ``run-limits`` Control the number of runs each benchmark will perform. The option value should be a list of `