REQ-2453: 添加日志, 看一下分类统计的命中率

This commit is contained in:
yanglin 2024-07-10 09:42:03 +08:00
parent a5899e114a
commit 255f5df11a

View File

@ -28,9 +28,9 @@ class PeriodCacheMetric {
}
void printAndReset() {
CacheMetric nextMetric = new CacheMetric(name);
CacheMetric prevMetric = this.metric.getAndSet(nextMetric);
prevMetric.print();
CacheMetric nextPeriod = new CacheMetric(name);
CacheMetric prevPeriod = this.metric.getAndSet(nextPeriod);
prevPeriod.print();
}
}