Class StreamingServerStat
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
CpuUsage
Gets the average CPU usage percentage over the last stat log interval.
public double CpuUsage { get; }
Property Value
Gpu3DUsage
Gets the average GPU 3D engine usage percentage over the last stat log interval.
public double Gpu3DUsage { get; }
Property Value
GpuDecoderUsage
Gets the average GPU decoder engine usage percentage over the last stat log interval.
public double GpuDecoderUsage { get; }
Property Value
GpuEncoderUsage
Gets the average GPU encoder engine usage percentage over the last stat log interval.
public double GpuEncoderUsage { get; }
Property Value
MemoryUsage
Gets the average memory usage percentage over the last stat log interval.
public double MemoryUsage { get; }
Property Value
PublishingPointCount
Gets the current number of active publishing points.
public int PublishingPointCount { get; }
Property Value
StatLogInterval
Gets or sets the interval at which server statistics are logged. Default value is 1 minute.
public TimeSpan StatLogInterval { get; set; }
Property Value
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
eventSourceEventSourceThe 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
eventDataEventWrittenEventArgsThe event data containing performance counter information.