Wrapping setImmediate to get running/yielding counts.

Need to special case when yielding for responsiveness, though.