Class HeapProfilerAdapter
- Namespace
- OpenQA.Selenium.DevTools.V142.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
- sessionIDevToolsSession
- The IDevToolsSession to be used with this adapter. 
Exceptions
- ArgumentNullException
- If - sessionis 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
- commandAddInspectedHeapObjectCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
CollectGarbage(CollectGarbageCommandSettings?, CancellationToken, int?, bool)
collectGarbage
public Task<CollectGarbageCommandResponse?> CollectGarbage(CollectGarbageCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandCollectGarbageCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
Disable(DisableCommandSettings?, CancellationToken, int?, bool)
disable
public Task<DisableCommandResponse?> Disable(DisableCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandDisableCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
Enable(EnableCommandSettings?, CancellationToken, int?, bool)
enable
public Task<EnableCommandResponse?> Enable(EnableCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandEnableCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
GetHeapObjectId(GetHeapObjectIdCommandSettings, CancellationToken, int?, bool)
getHeapObjectId
public Task<GetHeapObjectIdCommandResponse> GetHeapObjectId(GetHeapObjectIdCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandGetHeapObjectIdCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
GetObjectByHeapObjectId(GetObjectByHeapObjectIdCommandSettings, CancellationToken, int?, bool)
getObjectByHeapObjectId
public Task<GetObjectByHeapObjectIdCommandResponse> GetObjectByHeapObjectId(GetObjectByHeapObjectIdCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandGetObjectByHeapObjectIdCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
GetSamplingProfile(GetSamplingProfileCommandSettings?, CancellationToken, int?, bool)
getSamplingProfile
public Task<GetSamplingProfileCommandResponse> GetSamplingProfile(GetSamplingProfileCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandGetSamplingProfileCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
StartSampling(StartSamplingCommandSettings, CancellationToken, int?, bool)
startSampling
public Task<StartSamplingCommandResponse?> StartSampling(StartSamplingCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandStartSamplingCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
StartTrackingHeapObjects(StartTrackingHeapObjectsCommandSettings, CancellationToken, int?, bool)
startTrackingHeapObjects
public Task<StartTrackingHeapObjectsCommandResponse?> StartTrackingHeapObjects(StartTrackingHeapObjectsCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandStartTrackingHeapObjectsCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
StopSampling(StopSamplingCommandSettings?, CancellationToken, int?, bool)
stopSampling
public Task<StopSamplingCommandResponse> StopSampling(StopSamplingCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandStopSamplingCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
StopTrackingHeapObjects(StopTrackingHeapObjectsCommandSettings, CancellationToken, int?, bool)
stopTrackingHeapObjects
public Task<StopTrackingHeapObjectsCommandResponse?> StopTrackingHeapObjects(StopTrackingHeapObjectsCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandStopTrackingHeapObjectsCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
TakeHeapSnapshot(TakeHeapSnapshotCommandSettings, CancellationToken, int?, bool)
takeHeapSnapshot
public Task<TakeHeapSnapshotCommandResponse?> TakeHeapSnapshot(TakeHeapSnapshotCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandTakeHeapSnapshotCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
Events
AddHeapSnapshotChunk
addHeapSnapshotChunk
public event EventHandler<AddHeapSnapshotChunkEventArgs>? AddHeapSnapshotChunkEvent Type
HeapStatsUpdate
heapStatsUpdate
public event EventHandler<HeapStatsUpdateEventArgs>? HeapStatsUpdateEvent Type
LastSeenObjectId
lastSeenObjectId
public event EventHandler<LastSeenObjectIdEventArgs>? LastSeenObjectIdEvent Type
ReportHeapSnapshotProgress
reportHeapSnapshotProgress
public event EventHandler<ReportHeapSnapshotProgressEventArgs>? ReportHeapSnapshotProgressEvent Type
ResetProfiles
resetProfiles
public event EventHandler<ResetProfilesEventArgs>? ResetProfiles