public GetPercentile ( double percentile ) : int | ||
percentile | double | Value such as 99 (99th percentile), 99.5 (99.5th percentile), 50 (median, 50th percentile) to compute and retrieve percentile from rolling buckets. |
return | int |
Compute a percentile from the underlying rolling buckets of values.
For performance reasons it maintains a single snapshot of the sorted values from all buckets that is re-generated each time the bucket rotates.
This means that if a bucket is 5000 milliseconds, then this method will re-compute a percentile at most once every 5000 milliseconds.
public GetPercentile ( double percentile ) : int | ||
percentile | double | Value such as 99 (99th percentile), 99.5 (99.5th percentile), 50 (median, 50th percentile) to compute and retrieve percentile from rolling buckets. |
return | int |