You can insert managed or native methods of the APIs of the Visual Studio Team System Developer Edition Profiling Tools to control data collection in a profiling run. This section describes the methods of the APIs and describes how to use them.
Describes the C++ Profiling Tools methods.
Describes the .NET Profiling Tools methods.
Learn how to use the .NET Profiling Tools methods in this complete example.
Controlling Data Collection in Profiling Tools