diff --git a/pyperf/_worker.py b/pyperf/_worker.py index 33a0449f..4fc83516 100644 --- a/pyperf/_worker.py +++ b/pyperf/_worker.py @@ -59,8 +59,8 @@ def _compute_values(self, values, nvalue, task_func = self.task_func # If we are on a pystats build, turn on stats collection around the - # actual work, but only if we aren't warming up or calibrating. - if hasattr(sys, "_stats_on") and not is_warmup and not calibrate_loops: + # actual work, except when calibrating. + if hasattr(sys, "_stats_on") and not calibrate_loops: core_task_func = task_func def stats_func(*args):