Testing TMW with the following generator function logs a time of 0:
:::python
def time_this(self):
import time
time.sleep(5)
yield 1
More of our SCM code is using generators which are not being tracked properly and could be hiding critical points.
timermiddleware:cj/6387The timings for the generator end up in
timer_name.nextinstead oftimer_name. I'd prefer the timings to go undertimer_namebut then the call counts would be out of whack.