C# Class HdrHistogram.HistogramLogReader

Reads a log of Histograms from the provided Stream.
Inheritance: IDisposable, IHistogramLogV1Reader
Afficher le fichier Open project: HdrHistogram/HdrHistogram.NET Class Usage Examples

Méthodes publiques

Méthode Description
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

GetStartTime ( ) : System.DateTime

Gets the start time for the set of Histograms.

The current implementation requires the consumer to only use this after enumerating the Histograms from the ReadHistograms() method.

HistogramLogReader ( Stream inputStream ) : System

Creates a HistogramLogReader that reads from the provided Stream.

Read ( Stream inputStream ) : IEnumerable

Reads each histogram out from the underlying stream.

ReadHistograms ( ) : IEnumerable

Reads each histogram out from the underlying stream.

Private Methods

Méthode Description
DecodeHistogram ( ByteBuffer buffer, long minBarForHighestTrackableValue ) : HistogramBase
IHistogramLogV1Reader ( ) : IEnumerable
IsBaseTime ( string line ) : bool
IsComment ( string line ) : bool
IsLegend ( string line ) : bool
IsStartTime ( string line ) : bool
IsV1Legend ( string line ) : bool
ParseBaseTime ( string line ) : double
ParseDouble ( Match match, string group ) : double
ParseStartTime ( string line ) : double
ParseTag ( string value ) : string
ReadLines ( ) : IEnumerable

Method Details

Dispose() public méthode

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Résultat void

GetStartTime() public méthode

Gets the start time for the set of Histograms.
The current implementation requires the consumer to only use this after enumerating the Histograms from the ReadHistograms() method.
public GetStartTime ( ) : System.DateTime
Résultat System.DateTime

HistogramLogReader() public méthode

Creates a HistogramLogReader that reads from the provided Stream.
public HistogramLogReader ( Stream inputStream ) : System
inputStream Stream The to read from.
Résultat System

Read() public static méthode

Reads each histogram out from the underlying stream.
public static Read ( Stream inputStream ) : IEnumerable
inputStream Stream The to read from.
Résultat IEnumerable

ReadHistograms() public méthode

Reads each histogram out from the underlying stream.
public ReadHistograms ( ) : IEnumerable
Résultat IEnumerable