TimeHistogram

ditto

Members

Functions

countFor
ulong countFor()

Gets the count of transactions in the specified bin.

countMicros
ulong countMicros(ulong us)

Counts a transaction that took us µs to complete by incrementing the corresponding histogram bin and the total number of transactions and adding us to the total transaction time.

mean_time_micros
double mean_time_micros()
stats
Bins stats()

Structs

Bins
struct Bins

Struct with one uint field per bin (see this.bins), named as follows: from_0us ("from 0 microseconds"), from_1us, from_2us, from_5us, from_10us, from_20us, from_50us, from_100us, from_200us, from_500us, from_1ms, from_2ms, ..., from_1s ("from 1 second")

Variables

bins
uint[20] bins;

The bins of the timing histogram. The stepping of the lower bounds of the bins is, in µs:

count
uint count;

The total number of transactions.

total_time_micros
ulong total_time_micros;

The total aggregated transaction completion time in µs.

Meta