stop tracing when should_collect returns False.

This shaves the test runtime down by a log:
from 6 minutes to 2 minutes on one of my projects.