Class PerformanceMonitor
The PerformanceMonitor measures increments to a counter. During the computation it prints out current and average throughput per second. After the computation is done it prints a final performance report.
Note: This class is not thread safe.Do not use this class, internal use only!
public class PerformanceMonitor : IDisposable
- Inheritance
-
PerformanceMonitor
- Implements
- Inherited Members
Constructors
PerformanceMonitor(TextWriter, string)
The PerformanceMonitor measures increments to a counter. During the computation it prints out current and average throughput per second. After the computation is done it prints a final performance report.
Note: This class is not thread safe.Do not use this class, internal use only!
public PerformanceMonitor(TextWriter @out, string unit)
Parameters
outTextWriterunitstring
PerformanceMonitor(string)
public PerformanceMonitor(string unit)
Parameters
unitstring
Properties
IsStarted
public bool IsStarted { get; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
IncrementCounter()
public void IncrementCounter()
IncrementCounter(int)
public void IncrementCounter(int increment)
Parameters
incrementint
Start()
public void Start()
StartAndPrintThroughput()
public void StartAndPrintThroughput()
StopAndPrintFinalResult()
public void StopAndPrintFinalResult()