Class PerformanceMonitor

Namespace
NOpenNLP.Tools.Cmdline
Assembly
nopennlp.dll

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

out TextWriter
unit string

PerformanceMonitor(string)

public PerformanceMonitor(string unit)

Parameters

unit string

Properties

IsStarted

public bool IsStarted { get; }

Property Value

bool

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

increment int

Start()

public void Start()

StartAndPrintThroughput()

public void StartAndPrintThroughput()

StopAndPrintFinalResult()

public void StopAndPrintFinalResult()