IVsProfilerLauncher Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides the project system with the capability to launch targets under profiling.
public interface class IVsProfilerLauncher
public interface class IVsProfilerLauncher
__interface IVsProfilerLauncher
[System.Runtime.InteropServices.Guid("D7DC8C01-AFFF-45FE-B338-426E8072F6B7")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsProfilerLauncher
[<System.Runtime.InteropServices.Guid("D7DC8C01-AFFF-45FE-B338-426E8072F6B7")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsProfilerLauncher = interface
Public Interface IVsProfilerLauncher
- Attributes
Remarks
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 LaunchProfiler 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 LaunchProfiler with the attach targets to notify the profiler about the targets that were launched.
Methods
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. |