perf(scope): Compute perf counters as part of the fast dirty check if possible.