From 5f218194396d9d0e7ce049e52eb2fb24b0769ebe Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Wed, 25 Oct 2023 11:58:55 -0400 Subject: [PATCH] Include stats on warmups --- pyperf/_worker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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):