Class HeapProfilerAdapter
- Namespace
- OpenQA.Selenium.DevTools.V143.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
sessionIDevToolsSessionThe 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
commandAddInspectedHeapObjectCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?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
commandCollectGarbageCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?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
commandDisableCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?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
commandEnableCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?throwExceptionIfResponseNotReceivedbool
Returns
GetHeapObjectId(GetHeapObjectIdCommandSettings, CancellationToken, int?, bool)
getHeapObjectId
public Task<GetHeapObjectIdCommandResponse> GetHeapObjectId(GetHeapObjectIdCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
commandGetHeapObjectIdCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?throwExceptionIfResponseNotReceivedbool
Returns
GetObjectByHeapObjectId(GetObjectByHeapObjectIdCommandSettings, CancellationToken, int?, bool)
getObjectByHeapObjectId
public Task<GetObjectByHeapObjectIdCommandResponse> GetObjectByHeapObjectId(GetObjectByHeapObjectIdCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
commandGetObjectByHeapObjectIdCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?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
commandGetSamplingProfileCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?throwExceptionIfResponseNotReceivedbool
Returns
StartSampling(StartSamplingCommandSettings, CancellationToken, int?, bool)
startSampling
public Task<StartSamplingCommandResponse?> StartSampling(StartSamplingCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
commandStartSamplingCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?throwExceptionIfResponseNotReceivedbool
Returns
StartTrackingHeapObjects(StartTrackingHeapObjectsCommandSettings, CancellationToken, int?, bool)
startTrackingHeapObjects
public Task<StartTrackingHeapObjectsCommandResponse?> StartTrackingHeapObjects(StartTrackingHeapObjectsCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
commandStartTrackingHeapObjectsCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?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
commandStopSamplingCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?throwExceptionIfResponseNotReceivedbool
Returns
StopTrackingHeapObjects(StopTrackingHeapObjectsCommandSettings, CancellationToken, int?, bool)
stopTrackingHeapObjects
public Task<StopTrackingHeapObjectsCommandResponse?> StopTrackingHeapObjects(StopTrackingHeapObjectsCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
commandStopTrackingHeapObjectsCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?throwExceptionIfResponseNotReceivedbool
Returns
TakeHeapSnapshot(TakeHeapSnapshotCommandSettings, CancellationToken, int?, bool)
takeHeapSnapshot
public Task<TakeHeapSnapshotCommandResponse?> TakeHeapSnapshot(TakeHeapSnapshotCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
commandTakeHeapSnapshotCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?throwExceptionIfResponseNotReceivedbool
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