Class ProfilerAdapter
Represents an adapter for the Profiler domain to simplify the command interface.
public class ProfilerAdapter
- Inheritance
-
ProfilerAdapter
- Inherited Members
Constructors
ProfilerAdapter(IDevToolsSession)
Initializes a new instance of the ProfilerAdapter class.
public ProfilerAdapter(IDevToolsSession session)
Parameters
session
IDevToolsSessionThe IDevToolsSession to be used with this adapter.
Properties
Session
Gets the DevToolsSession associated with the adapter.
public IDevToolsSession Session { get; }
Property Value
Methods
Disable(DisableCommandSettings, CancellationToken, int?, bool)
disable
public Task<DisableCommandResponse> Disable(DisableCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
DisableCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
DisableRuntimeCallStats(DisableRuntimeCallStatsCommandSettings, CancellationToken, int?, bool)
disableRuntimeCallStats
public Task<DisableRuntimeCallStatsCommandResponse> DisableRuntimeCallStats(DisableRuntimeCallStatsCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
DisableRuntimeCallStatsCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
Enable(EnableCommandSettings, CancellationToken, int?, bool)
enable
public Task<EnableCommandResponse> Enable(EnableCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
EnableCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
EnableRuntimeCallStats(EnableRuntimeCallStatsCommandSettings, CancellationToken, int?, bool)
enableRuntimeCallStats
public Task<EnableRuntimeCallStatsCommandResponse> EnableRuntimeCallStats(EnableRuntimeCallStatsCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
EnableRuntimeCallStatsCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
GetBestEffortCoverage(GetBestEffortCoverageCommandSettings, CancellationToken, int?, bool)
getBestEffortCoverage
public Task<GetBestEffortCoverageCommandResponse> GetBestEffortCoverage(GetBestEffortCoverageCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
GetBestEffortCoverageCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
GetRuntimeCallStats(GetRuntimeCallStatsCommandSettings, CancellationToken, int?, bool)
getRuntimeCallStats
public Task<GetRuntimeCallStatsCommandResponse> GetRuntimeCallStats(GetRuntimeCallStatsCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
GetRuntimeCallStatsCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetSamplingInterval(SetSamplingIntervalCommandSettings, CancellationToken, int?, bool)
setSamplingInterval
public Task<SetSamplingIntervalCommandResponse> SetSamplingInterval(SetSamplingIntervalCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetSamplingIntervalCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
Start(StartCommandSettings, CancellationToken, int?, bool)
start
public Task<StartCommandResponse> Start(StartCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
StartCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
StartPreciseCoverage(StartPreciseCoverageCommandSettings, CancellationToken, int?, bool)
startPreciseCoverage
public Task<StartPreciseCoverageCommandResponse> StartPreciseCoverage(StartPreciseCoverageCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
StartPreciseCoverageCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
StartTypeProfile(StartTypeProfileCommandSettings, CancellationToken, int?, bool)
startTypeProfile
public Task<StartTypeProfileCommandResponse> StartTypeProfile(StartTypeProfileCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
StartTypeProfileCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
Stop(StopCommandSettings, CancellationToken, int?, bool)
stop
public Task<StopCommandResponse> Stop(StopCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
StopCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
StopPreciseCoverage(StopPreciseCoverageCommandSettings, CancellationToken, int?, bool)
stopPreciseCoverage
public Task<StopPreciseCoverageCommandResponse> StopPreciseCoverage(StopPreciseCoverageCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
StopPreciseCoverageCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
StopTypeProfile(StopTypeProfileCommandSettings, CancellationToken, int?, bool)
stopTypeProfile
public Task<StopTypeProfileCommandResponse> StopTypeProfile(StopTypeProfileCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
StopTypeProfileCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
TakePreciseCoverage(TakePreciseCoverageCommandSettings, CancellationToken, int?, bool)
takePreciseCoverage
public Task<TakePreciseCoverageCommandResponse> TakePreciseCoverage(TakePreciseCoverageCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
TakePreciseCoverageCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
TakeTypeProfile(TakeTypeProfileCommandSettings, CancellationToken, int?, bool)
takeTypeProfile
public Task<TakeTypeProfileCommandResponse> TakeTypeProfile(TakeTypeProfileCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
TakeTypeProfileCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
Events
ConsoleProfileFinished
consoleProfileFinished
public event EventHandler<ConsoleProfileFinishedEventArgs> ConsoleProfileFinished
Event Type
ConsoleProfileStarted
consoleProfileStarted
public event EventHandler<ConsoleProfileStartedEventArgs> ConsoleProfileStarted
Event Type
PreciseCoverageDeltaUpdate
preciseCoverageDeltaUpdate
public event EventHandler<PreciseCoverageDeltaUpdateEventArgs> PreciseCoverageDeltaUpdate