MCPcopy Create free account
hub / github.com/NetSys/bess / Histogram

Method Histogram

core/utils/histogram.h:66–67  ·  view source on GitHub ↗

Construct a new histogram with "num_buckets" buckets of width "bucket_width".

Source from the content-addressed store, hash-verified

64 // Construct a new histogram with "num_buckets" buckets of width
65 // "bucket_width".
66 Histogram(size_t num_buckets, T bucket_width)
67 : bucket_width_(bucket_width), buckets_(num_buckets + 1) {}
68
69 // Swap operator allows clean summarizing with external lock,
70 // when using a histogram on an active data stream.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected