Click or drag to resize

HeapProfilerClientStartSamplingAsync Method

Version 130.1.90
StartSampling

Namespace: CefSharp.DevTools.HeapProfiler
Assembly: CefSharp.Core (in CefSharp.Core.dll) Version: 129.0.110.0
Syntax
public Task<DevToolsMethodResponse> StartSamplingAsync(
	double? samplingInterval = null,
	bool? includeObjectsCollectedByMajorGC = null,
	bool? includeObjectsCollectedByMinorGC = null
)

Parameters

samplingInterval  NullableDouble  (Optional)
Average sample interval in bytes. Poisson distribution is used for the intervals. Thedefault value is 32768 bytes.
includeObjectsCollectedByMajorGC  NullableBoolean  (Optional)
By default, the sampling heap profiler reports only objects which arestill alive when the profile is returned via getSamplingProfile orstopSampling, which is useful for determining what functions contributethe most to steady-state memory usage. This flag instructs the samplingheap profiler to also include information about objects discarded bymajor GC, which will show which functions cause large temporary memoryusage or long GC pauses.
includeObjectsCollectedByMinorGC  NullableBoolean  (Optional)
By default, the sampling heap profiler reports only objects which arestill alive when the profile is returned via getSamplingProfile orstopSampling, which is useful for determining what functions contributethe most to steady-state memory usage. This flag instructs the samplingheap profiler to also include information about objects discarded byminor GC, which is useful when tuning a latency-sensitive applicationfor minimal GC activity.

Return Value

TaskDevToolsMethodResponse
returns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also