35#include "params/BaseDictionaryCompressor.hh"
44 :
Base(
p), dictionarySize(
p.dictionary_size),
45 numEntries(0), dictionaryStats(stats, *this)
51 : statistics::
Group(&base_group), compressor(_compressor),
52 ADD_STAT(patterns, statistics::units::Count::get(),
53 "Number of data entries that were compressed to this pattern")
63 patterns.init(compressor.getNumPatterns());
64 for (
unsigned i = 0;
i < compressor.getNumPatterns(); ++
i) {
65 const std::string
name = compressor.getName(
i);
66 patterns.subname(
i,
name);
67 patterns.subdesc(
i,
"Number of data entries that match pattern " +
virtual std::string name() const
BaseDictionaryCompressor(const Params &p)
BaseDictionaryCompressorParams Params
Base cache compressor interface.
Definition of a dictionary based cache compressor.
#define ADD_STAT(n,...)
Convenience macro to add a stat to a statistics group.
virtual void regStats()
Callback to set stat parameters.
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
void regStats() override
Callback to set stat parameters.
DictionaryStats(BaseStats &base_group, BaseDictionaryCompressor &_compressor)