MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / hdr_reset

Function hdr_reset

deps/hdr_histogram/hdr_histogram.c:430–436  ·  view source on GitHub ↗

reset a histogram to zero. */

Source from the content-addressed store, hash-verified

428
429/* reset a histogram to zero. */
430void hdr_reset(struct hdr_histogram *h)
431{
432 h->total_count=0;
433 h->min_value = INT64_MAX;
434 h->max_value = 0;
435 memset(h->counts, 0, (sizeof(int64_t) * h->counts_len));
436}
437
438size_t hdr_get_memory_size(struct hdr_histogram *h)
439{

Callers 1

showThroughputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected