Class HeapProfilerAdapter
- Namespace
- OpenQA.Selenium.DevTools.V135.HeapProfiler
- Assembly
- WebDriver.dll
Represents an adapter for the HeapProfiler domain to simplify the command interface.
public class HeapProfilerAdapter
- Inheritance
-
HeapProfilerAdapter
- Inherited Members
Constructors
HeapProfilerAdapter(IDevToolsSession)
Initializes a new instance of the HeapProfilerAdapter class.
public HeapProfilerAdapter(IDevToolsSession session)
Parameters
session
IDevToolsSessionThe IDevToolsSession to be used with this adapter.
Exceptions
- ArgumentNullException
If
session
is null.
Properties
Session
Gets the DevToolsSession associated with the adapter.
public IDevToolsSession Session { get; }
Property Value
Methods
AddInspectedHeapObject(AddInspectedHeapObjectCommandSettings, CancellationToken, int?, bool)
addInspectedHeapObject
public Task<AddInspectedHeapObjectCommandResponse?> AddInspectedHeapObject(AddInspectedHeapObjectCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
AddInspectedHeapObjectCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
CollectGarbage(CollectGarbageCommandSettings?, CancellationToken, int?, bool)
collectGarbage
public Task<CollectGarbageCommandResponse?> CollectGarbage(CollectGarbageCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
CollectGarbageCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
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
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
GetHeapObjectId(GetHeapObjectIdCommandSettings, CancellationToken, int?, bool)
getHeapObjectId
public Task<GetHeapObjectIdCommandResponse> GetHeapObjectId(GetHeapObjectIdCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
GetHeapObjectIdCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
GetObjectByHeapObjectId(GetObjectByHeapObjectIdCommandSettings, CancellationToken, int?, bool)
getObjectByHeapObjectId
public Task<GetObjectByHeapObjectIdCommandResponse> GetObjectByHeapObjectId(GetObjectByHeapObjectIdCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
GetObjectByHeapObjectIdCommandSettingscancellationToken
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
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
StartTrackingHeapObjects(StartTrackingHeapObjectsCommandSettings, CancellationToken, int?, bool)
startTrackingHeapObjects
public Task<StartTrackingHeapObjectsCommandResponse?> StartTrackingHeapObjects(StartTrackingHeapObjectsCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
StartTrackingHeapObjectsCommandSettingscancellationToken
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
Returns
StopTrackingHeapObjects(StopTrackingHeapObjectsCommandSettings, CancellationToken, int?, bool)
stopTrackingHeapObjects
public Task<StopTrackingHeapObjectsCommandResponse?> StopTrackingHeapObjects(StopTrackingHeapObjectsCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
StopTrackingHeapObjectsCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
TakeHeapSnapshot(TakeHeapSnapshotCommandSettings, CancellationToken, int?, bool)
takeHeapSnapshot
public Task<TakeHeapSnapshotCommandResponse?> TakeHeapSnapshot(TakeHeapSnapshotCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
TakeHeapSnapshotCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
Events
AddHeapSnapshotChunk
addHeapSnapshotChunk
public event EventHandler<AddHeapSnapshotChunkEventArgs>? AddHeapSnapshotChunk
Event Type
HeapStatsUpdate
heapStatsUpdate
public event EventHandler<HeapStatsUpdateEventArgs>? HeapStatsUpdate
Event Type
LastSeenObjectId
lastSeenObjectId
public event EventHandler<LastSeenObjectIdEventArgs>? LastSeenObjectId
Event Type
ReportHeapSnapshotProgress
reportHeapSnapshotProgress
public event EventHandler<ReportHeapSnapshotProgressEventArgs>? ReportHeapSnapshotProgress
Event Type
ResetProfiles
resetProfiles
public event EventHandler<ResetProfilesEventArgs>? ResetProfiles