mem: Add Units to mem stats
[gem5.git] / src / mem / cache / compressors / base_dictionary_compressor.cc
index 16a7d402b738303bb90ec5cfe16334c2bdbefe91..65646d58b998db4aefbe957d5e5782a92b2eee97 100644 (file)
@@ -45,8 +45,8 @@ BaseDictionaryCompressor::BaseDictionaryCompressor(const Params &p)
 BaseDictionaryCompressor::DictionaryStats::DictionaryStats(
     BaseStats& base_group, BaseDictionaryCompressor& _compressor)
   : Stats::Group(&base_group), compressor(_compressor),
-    patterns(this, "pattern",
-        "Number of data entries that were compressed to this pattern")
+    ADD_STAT(patterns, UNIT_COUNT,
+             "Number of data entries that were compressed to this pattern")
 {
 }