Table of Contents

Class ProfileOptions

Namespace
DotCompute.Core.Telemetry.Options
Assembly
DotCompute.Core.dll

Configuration options for individual profiling sessions. Defines what data to collect and profiling behavior for a specific session.

public sealed class ProfileOptions
Inheritance
ProfileOptions
Inherited Members

Properties

AutoStopAfter

Gets or sets the automatic stop timeout for the profiling session. If set, the profile will automatically stop after this duration.

public TimeSpan? AutoStopAfter { get; set; }

Property Value

TimeSpan?

The auto-stop timeout as a TimeSpan or null for manual control.

EnableDetailedMemoryProfiling

Gets or sets a value indicating whether detailed memory profiling is enabled. When enabled, collects comprehensive memory allocation and usage data. Default value is true.

public bool EnableDetailedMemoryProfiling { get; set; }

Property Value

bool

true if detailed memory profiling is enabled; otherwise, false.

EnableDetailedMetrics

Gets or sets a value indicating whether detailed metrics are enabled. When enabled, collects fine-grained performance metrics. Default value is true.

public bool EnableDetailedMetrics { get; set; }

Property Value

bool

EnableKernelProfiling

Gets or sets a value indicating whether kernel profiling is enabled. When enabled, collects performance data from compute kernel executions. Default value is true.

public bool EnableKernelProfiling { get; set; }

Property Value

bool

true if kernel profiling is enabled; otherwise, false.

EnableSystemProfiling

Gets or sets a value indicating whether system profiling is enabled. When enabled, collects system-level performance metrics like CPU and memory usage. Default value is true.

public bool EnableSystemProfiling { get; set; }

Property Value

bool

true if system profiling is enabled; otherwise, false.

SampleIntervalMs

Gets or sets the sampling interval in milliseconds. Determines how frequently performance data is sampled. Default value is 100ms.

public int SampleIntervalMs { get; set; }

Property Value

int