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

Method Resize

core/utils/histogram.h:193–196  ·  view source on GitHub ↗

Resize the histogram. Note that this resets it (i.e., this does not attempt to redistribute existing counts).

Source from the content-addressed store, hash-verified

191 // Resize the histogram. Note that this resets it (i.e., this
192 // does not attempt to redistribute existing counts).
193 void Resize(size_t num_buckets, T bucket_width) {
194 buckets_ = std::move(std::vector<std::atomic<uint64_t>>(num_buckets + 1));
195 bucket_width_ = bucket_width;
196 }
197
198 private:
199 // TODO(melvin): add support for logarithmic binning

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected