Table of Contents

Class StreamingServerStat

Namespace
VAST.Network
Assembly
VAST.Network.dll

Collects and provides server performance statistics including CPU, memory, and GPU usage. This implementation is used on .NET Core and derives from EventListener.

public class StreamingServerStat : EventListener, IDisposable
Inheritance
StreamingServerStat
Implements
Inherited Members

Properties

ConnectionCount

Gets the current number of active connections.

public int ConnectionCount { get; }

Property Value

int

CpuUsage

Gets the average CPU usage percentage over the last stat log interval.

public double CpuUsage { get; }

Property Value

double

Gpu3DUsage

Gets the average GPU 3D engine usage percentage over the last stat log interval.

public double Gpu3DUsage { get; }

Property Value

double

GpuDecoderUsage

Gets the average GPU decoder engine usage percentage over the last stat log interval.

public double GpuDecoderUsage { get; }

Property Value

double

GpuEncoderUsage

Gets the average GPU encoder engine usage percentage over the last stat log interval.

public double GpuEncoderUsage { get; }

Property Value

double

MemoryUsage

Gets the average memory usage percentage over the last stat log interval.

public double MemoryUsage { get; }

Property Value

double

PublishingPointCount

Gets the current number of active publishing points.

public int PublishingPointCount { get; }

Property Value

int

StatLogInterval

Gets or sets the interval at which server statistics are logged. Default value is 1 minute.

public TimeSpan StatLogInterval { get; set; }

Property Value

TimeSpan

Methods

Dispose()

Releases all resources used by the StreamingServerStat.

public override void Dispose()

OnEventSourceCreated(EventSource)

Called when an event source is created. Enables the System.Runtime event source for counter collection.

protected override void OnEventSourceCreated(EventSource eventSource)

Parameters

eventSource EventSource

The event source that was created.

OnEventWritten(EventWrittenEventArgs)

Called when an event is written. Processes EventCounters events to collect CPU and memory usage data.

protected override void OnEventWritten(EventWrittenEventArgs eventData)

Parameters

eventData EventWrittenEventArgs

The event data containing performance counter information.