Table of Contents

Class StartSamplingCommandSettings

Namespace
OpenQA.Selenium.DevTools.V148.HeapProfiler
Assembly
Selenium.WebDriver.dll

StartSampling

public sealed class StartSamplingCommandSettings : ICommand
Inheritance
StartSamplingCommandSettings
Implements
Inherited Members

Properties

CommandName

Gets the name of the command.

[JsonIgnore]
public string CommandName { get; }

Property Value

string

IncludeObjectsCollectedByMajorGC

By default, the sampling heap profiler reports only objects which are still alive when the profile is returned via getSamplingProfile or stopSampling, which is useful for determining what functions contribute the most to steady-state memory usage. This flag instructs the sampling heap profiler to also include information about objects discarded by major GC, which will show which functions cause large temporary memory usage or long GC pauses.

[JsonPropertyName("includeObjectsCollectedByMajorGC")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public bool? IncludeObjectsCollectedByMajorGC { get; set; }

Property Value

bool?

IncludeObjectsCollectedByMinorGC

By default, the sampling heap profiler reports only objects which are still alive when the profile is returned via getSamplingProfile or stopSampling, which is useful for determining what functions contribute the most to steady-state memory usage. This flag instructs the sampling heap profiler to also include information about objects discarded by minor GC, which is useful when tuning a latency-sensitive application for minimal GC activity.

[JsonPropertyName("includeObjectsCollectedByMinorGC")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public bool? IncludeObjectsCollectedByMinorGC { get; set; }

Property Value

bool?

SamplingInterval

Average sample interval in bytes. Poisson distribution is used for the intervals. The default value is 32768 bytes.

[JsonPropertyName("samplingInterval")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public double? SamplingInterval { get; set; }

Property Value

double?

StackDepth

Maximum stack depth. The default value is 128.

[JsonPropertyName("stackDepth")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public double? StackDepth { get; set; }

Property Value

double?