Crate heatmap [] [src]

Heatmap provides a time-series of Histograms, which is useful for recording distributions over time and reporting percentiles over time

Goals

  • pre-allocated datastructure
  • report time-series percentiles
  • auto-slicing by record time

Future work

  • more efficient serialization format

Usage

Create a heatmap. Insert values over time. Profit.

use heatmap::*;

let mut h = Heatmap::configure().start(0).build().unwrap();

let timestamp = 0;
for value in 1..100 {
    h.increment(timestamp, value).unwrap();
}

Structs

Config

A configuration struct for building custom Heatmaps.

Heatmap

main datastructure of Heatmap

Iter

Iterator over a Heatmap's Slices

Slice

a Histogram with time boundaries