Share via


Code Profiler – Attaching to a running process

The Sampling method of profiling offered by Visual Studio Team System can be applied to a running process as easily as one that Visual Studio Team System launches on its own. In some cases – such as examining a SOA application in production – being able to attach to an already-running process is a necessity. In other cases, it is crucial to allow a process to run for some time and reach a state of natural equilibrium before examining it for performance.

After a process has been attached to and examined, Visual Studio Team System can safely detach from it. The process is left unchanged and can continue its execution normally; again this is a crucial feature for investigating applications in a production environment.

Profiling a running process