Sampling is a profiling technique that involves taking snapshots of program execution at intervals. Sampling collects less ...

Sampling is a profiling technique that involves taking snapshots of program execution at intervals.  Sampling collects less data than instrumentation so it can be run on longer scenarios.  By default, sampling will tell you what functions are using the most CPU time if the application is limited in performance by CPU speed and not other factors like hard drive or network speed.