Dela via


Snapshot(TimeSpan, TimeSpan, TimeSpan, UInt64) Constructor

Definition

Initializes a new instance of the Snapshot struct.

public:
 Snapshot(TimeSpan totalTimeSinceStart, TimeSpan kernelTimeSinceStart, TimeSpan userTimeSinceStart, System::UInt64 memoryUsageInBytes);
public Snapshot (TimeSpan totalTimeSinceStart, TimeSpan kernelTimeSinceStart, TimeSpan userTimeSinceStart, ulong memoryUsageInBytes);
new Microsoft.Extensions.Diagnostics.ResourceMonitoring.Snapshot : TimeSpan * TimeSpan * TimeSpan * uint64 -> Microsoft.Extensions.Diagnostics.ResourceMonitoring.Snapshot
Public Sub New (totalTimeSinceStart As TimeSpan, kernelTimeSinceStart As TimeSpan, userTimeSinceStart As TimeSpan, memoryUsageInBytes As ULong)

Parameters

totalTimeSinceStart
TimeSpan

The time at which the snapshot was taken.

kernelTimeSinceStart
TimeSpan

The amount of kernel time that has elapsed since startup.

userTimeSinceStart
TimeSpan

The amount of user time that has elapsed since startup.

memoryUsageInBytes
UInt64

The memory usage within the system in bytes.

Applies to