snyder
Overview
Snyder is a metrics library for C++11. It supports tracking of a number of metric types from different threads.
Usage
auto reg = new Snyder::MetricsRegistry();
reg->Increment("foo");
reg->Increment("foo", 5);
reg->Decrement("foo", 2);
reg->Gauge("bla", 10);
// get a snapshot and clear out metrics
auto snapshot = reg->Snapshot();
reg->Reset();
You can also checkout the reference docs here.
Metrics Types
- counters: a monotonic increasing count
- gauge: simple value tracking
Installation
For Linux there are packages available on packagecloud.
It’s autotools, so for everything else there’s this:
./autogen.sh
./configure
make install
Etymology
Snyder is named after Betty Snyder, one of the six original programmers of ENIAC, who is credited with inventing breakpoints for debugging.