C# Class HdrHistogram.HistogramLogReader

Reads a log of Histograms from the provided Stream.
Inheritance: IDisposable, IHistogramLogV1Reader
ファイルを表示 Open project: HdrHistogram/HdrHistogram.NET Class Usage Examples

Public Methods

Method 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

Method 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 method

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

GetStartTime() public method

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
return System.DateTime

HistogramLogReader() public method

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

Read() public static method

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

ReadHistograms() public method

Reads each histogram out from the underlying stream.
public ReadHistograms ( ) : IEnumerable
return IEnumerable