C# Class HdrHistogram.Examples.SimpleHistogramExample

A simple example of using HdrHistogram: run for 20 seconds collecting the time it takes to perform a simple Datagram Socket create/close operation, and report a histogram of the times at the end.
Afficher le fichier Open project: HdrHistogram/HdrHistogram.NET

Méthodes publiques

Méthode Description
Run ( ) : void

Private Methods

Méthode Description
CreateAndCloseDatagramSocket ( ) : void
GetAddressFamily ( string url ) : AddressFamily
OutputMeasurements ( ) : void

Write to the console the memory footprint of the histogram instance and the percentile distribution of all the recorded values.

RecordMeasurements ( ) : void

Shows a sample loop where an action is executed, and the latency of each execution is recorded.

Method Details

Run() public static méthode

public static Run ( ) : void
Résultat void