An open API service indexing awesome lists of open source software.

https://github.com/epickrram/rustogram

rust port of hdr-histogram
https://github.com/epickrram/rustogram

Last synced: 6 months ago
JSON representation

rust port of hdr-histogram

Awesome Lists containing this project

README

          

# rustogram

[![Build status](https://travis-ci.org/epickrram/rustogram.svg?branch=master)](https://travis-ci.org/epickrram/rustogram)

A Rust port of [HdrHistogram](https://github.com/HdrHistogram/HdrHistogram).

# features

* Implements the signed 64-bit histogram implementation
* Binary compatible storage/retrieval of histogram values
* Serialisation compatible (v2 only, scaling not supported)

# usage

extern crate rustogram;
#[test]
fn it_works() {
let mut h = rustogram::histogram::new_histogram(10000, 3);
h.record_value(42);
println!("Total recorded samples: {}", h.get_total_count());
}