| 20 | namespace cachelib { |
| 21 | namespace cachebench { |
| 22 | ProgressTracker::ProgressTracker(size_t instanceId, |
| 23 | const Stressor& s, |
| 24 | const std::string& detailedStatsFile) |
| 25 | : instanceId_(instanceId), |
| 26 | stressor_(s), |
| 27 | prevStats_(stressor_.getCacheStats()) { |
| 28 | if (!detailedStatsFile.empty()) { |
| 29 | statsFile_.open(detailedStatsFile, std::ios::app); |
| 30 | statsFile_ << "=== Starting new run ===" << std::endl; |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | ProgressTracker::~ProgressTracker() { |
| 35 | try { |
nothing calls this directly
no test coverage detected