Class MemoryAdapter
Represents an adapter for the Memory domain to simplify the command interface.
public class MemoryAdapter
- Inheritance
-
MemoryAdapter
- Inherited Members
Constructors
MemoryAdapter(IDevToolsSession)
Initializes a new instance of the MemoryAdapter class.
public MemoryAdapter(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
ForciblyPurgeJavaScriptMemory(ForciblyPurgeJavaScriptMemoryCommandSettings, CancellationToken, int?, bool)
forciblyPurgeJavaScriptMemory
public Task<ForciblyPurgeJavaScriptMemoryCommandResponse> ForciblyPurgeJavaScriptMemory(ForciblyPurgeJavaScriptMemoryCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
ForciblyPurgeJavaScriptMemoryCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
GetAllTimeSamplingProfile(GetAllTimeSamplingProfileCommandSettings, CancellationToken, int?, bool)
getAllTimeSamplingProfile
public Task<GetAllTimeSamplingProfileCommandResponse> GetAllTimeSamplingProfile(GetAllTimeSamplingProfileCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
GetAllTimeSamplingProfileCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
GetBrowserSamplingProfile(GetBrowserSamplingProfileCommandSettings, CancellationToken, int?, bool)
getBrowserSamplingProfile
public Task<GetBrowserSamplingProfileCommandResponse> GetBrowserSamplingProfile(GetBrowserSamplingProfileCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
GetBrowserSamplingProfileCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
GetDOMCounters(GetDOMCountersCommandSettings, CancellationToken, int?, bool)
getDOMCounters
public Task<GetDOMCountersCommandResponse> GetDOMCounters(GetDOMCountersCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
GetDOMCountersCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
GetDOMCountersForLeakDetection(GetDOMCountersForLeakDetectionCommandSettings, CancellationToken, int?, bool)
getDOMCountersForLeakDetection
public Task<GetDOMCountersForLeakDetectionCommandResponse> GetDOMCountersForLeakDetection(GetDOMCountersForLeakDetectionCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
GetDOMCountersForLeakDetectionCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
GetSamplingProfile(GetSamplingProfileCommandSettings, CancellationToken, int?, bool)
getSamplingProfile
public Task<GetSamplingProfileCommandResponse> GetSamplingProfile(GetSamplingProfileCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
GetSamplingProfileCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
PrepareForLeakDetection(PrepareForLeakDetectionCommandSettings, CancellationToken, int?, bool)
prepareForLeakDetection
public Task<PrepareForLeakDetectionCommandResponse> PrepareForLeakDetection(PrepareForLeakDetectionCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
PrepareForLeakDetectionCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetPressureNotificationsSuppressed(SetPressureNotificationsSuppressedCommandSettings, CancellationToken, int?, bool)
setPressureNotificationsSuppressed
public Task<SetPressureNotificationsSuppressedCommandResponse> SetPressureNotificationsSuppressed(SetPressureNotificationsSuppressedCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetPressureNotificationsSuppressedCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SimulatePressureNotification(SimulatePressureNotificationCommandSettings, CancellationToken, int?, bool)
simulatePressureNotification
public Task<SimulatePressureNotificationCommandResponse> SimulatePressureNotification(SimulatePressureNotificationCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SimulatePressureNotificationCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
StartSampling(StartSamplingCommandSettings, CancellationToken, int?, bool)
startSampling
public Task<StartSamplingCommandResponse> StartSampling(StartSamplingCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
StartSamplingCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
StopSampling(StopSamplingCommandSettings, CancellationToken, int?, bool)
stopSampling
public Task<StopSamplingCommandResponse> StopSampling(StopSamplingCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
StopSamplingCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool