.NET Profiler 5.0 Help
Running applications with profiler
Profiling overhead: how to reduce or avoidThe profiler may add some overhead to the performance of applications you profile. This overhead may vary from virtually zero to significant, depending on the conditions described below.
Overhead of running an application with profiler
The overhead depends on the profiling capabilities specified on the Welcome screen.
Enabling CPU tracing and/or allocation recording adds overhead which is, however, acceptable for most applications.
If CPU tracing and allocation recording are disabled, the overhead is virtually zero.
Overhead when measuring is performed
When CPU profiling or allocation recording are running, the profiler adds extra overhead. After measuring is done and turned off, overhead should decrease to the initial level described above.
Tracing overhead is greater than sampling overhead.
Allocation recording overhead depends on the number of recorded objects. To reduce the overhead, record fewer objects with the help of the "Record each..." constraints.
Snapshot capture
During the capture, the profiled application is paused. The time it takes to capture a memory snapshot depends on the heap size. Capturing memory snapshots of huge heaps takes more time because of the intensive use of the system swap file (if little free physical memory is available).