There are three environment variables needed for a .Net application you wish to profile. The profiler team has provided VSPerfCLREnv.cmd to set these variables for you. The switches for this helper file are:
for trace (instrumentation) profiling:
There are global versions of each of the above switches to set the environment need for profiling a managed service that is launched by the OS on startup, not the user (and hence the environment has to be set in the registry).
To delete these environment settings, simply use the /off or /globaloff switches.
I hope this helps anyone exploring the command line capabilities of profiling a .Net application with Visual Studio Team System.
This posting is provided "AS IS" with no warranties, and confers no rights.