IVsProfilerLauncher Interface
Provides the project system with the capability to launch targets under profiling.
Assembly: Microsoft.VisualStudio.Shell.Interop.11.0 (in Microsoft.VisualStudio.Shell.Interop.11.0.dll)
| Name | Description | |
|---|---|---|
![]() | LaunchProfiler(IEnumVsProfilerTargetInfos) | Launches the profiler targets. If the project system has already done the launch, this method notifies the profiler about the targets that were launched. |
![]() | QueryProfilingEnvironment(Array) | Queries the profiler for the profiling environment variables. |
Typical usage for a project that delegates to the profiler to do the launch (recommended scenario):
Inside the project system’s implementation of the LaunchProfiler method of the IVsProfilableProjectCfg interface, create one or more IVsProfilerLaunchTargetInfos.
Get the SVsProfilerLauncher service to get the launch manager service.
Note If the profiler is not installed, this service will not be available.
Call M:Microsoft.VisualStudio.Shell.Interop.IVsProfilerLauncher.LaunchProfiler(System.UInt32,Microsoft.VisualStudio.Shell.Interop.IVsProfilerTargetInfo[]) with the created targets. The profiler will do the launch.
There is also an “Attach” case, where the project system should:
Inside the project’s implementation of the LaunchProfiler method of the IVsProfilableProjectCfg interface, create the attach targets.
Get the SVsProfilerLauncher service to get the launch manager service.
Call QueryProfilingEnvironment to determine which environment variables need to set by the project system.
Launch targets (with the right profiling environment variables set).
Call M:Microsoft.VisualStudio.Shell.Interop.IVsProfilerLauncher.LaunchProfiler(System.UInt32,Microsoft.VisualStudio.Shell.Interop.IVsProfilerTargetInfo[]) with the attach targets to notify the profiler about the targets that were launched.
