Samples in a tight loop to analyze the effect of switching contexts