Home | History | Annotate | Download | only in disk_cache

Lines Matching refs:Stats

508   if (!stats_.Init(this, &data_->header.stats))
575 stats_.OnEvent(Stats::DOOM_CACHE);
632 stats_.OnEvent(Stats::DOOM_RECENT);
677 stats_.OnEvent(Stats::OPEN_MISS);
684 stats_.OnEvent(Stats::OPEN_MISS);
692 stats_.OnEvent(Stats::OPEN_HIT);
736 stats_.OnEvent(Stats::CREATE_ERROR);
744 stats_.OnEvent(Stats::CREATE_ERROR);
756 stats_.OnEvent(Stats::CREATE_ERROR);
778 stats_.OnEvent(Stats::CREATE_HIT);
919 stats_.OnEvent(Stats::DOOM_ENTRY);
1047 int64 last_report = stats_.GetCounter(Stats::LAST_REPORT);
1050 stats_.SetCounter(Stats::LAST_REPORT, Time::Now().ToInternalValue());
1065 int64 use_time = stats_.GetCounter(Stats::TIMER);
1101 stats_.OnEvent(Stats::FATAL_ERROR);
1121 void BackendImpl::OnEvent(Stats::Counters an_event) {
1138 stats_.OnEvent(Stats::TIMER);
1139 int64 time = stats_.GetCounter(Stats::TIMER);
1140 int64 current = stats_.GetCounter(Stats::OPEN_ENTRIES);
1149 stats_.SetCounter(Stats::OPEN_ENTRIES, current);
1150 stats_.SetCounter(Stats::MAX_ENTRIES, max_refs_);
1168 // Save stats to disk at 5 min intervals.
1315 void BackendImpl::GetStats(StatsItems* stats) {
1323 stats->push_back(item);
1327 stats->push_back(item);
1331 stats->push_back(item);
1335 stats->push_back(item);
1337 stats_.GetItems(stats);
1442 int64 errors = stats_.GetCounter(Stats::FATAL_ERROR);
1443 int64 full_dooms = stats_.GetCounter(Stats::DOOM_CACHE);
1444 int64 partial_dooms = stats_.GetCounter(Stats::DOOM_RECENT);
1445 int64 last_report = stats_.GetCounter(Stats::LAST_REPORT);
1461 stats_.SetCounter(Stats::FATAL_ERROR, errors);
1462 stats_.SetCounter(Stats::DOOM_CACHE, full_dooms);
1463 stats_.SetCounter(Stats::DOOM_RECENT, partial_dooms);
1464 stats_.SetCounter(Stats::LAST_REPORT, last_report);
1782 stats_.OnEvent(Stats::CREATE_MISS);
1793 stats_.OnEvent(Stats::RESURRECT_HIT);
1809 stats_.OnEvent(Stats::INVALID_ENTRY);
1851 StatsItems stats;
1852 GetStats(&stats);
1854 for (size_t index = 0; index < stats.size(); index++)
1855 VLOG(1) << stats[index].first << ": " << stats[index].second;
1870 static_cast<int>(stats_.GetCounter(Stats::OPEN_ENTRIES)));
1872 static_cast<int>(stats_.GetCounter(Stats::MAX_ENTRIES)));
1873 stats_.SetCounter(Stats::MAX_ENTRIES, 0);
1876 static_cast<int>(stats_.GetCounter(Stats::FATAL_ERROR)));
1878 static_cast<int>(stats_.GetCounter(Stats::DOOM_CACHE)));
1880 static_cast<int>(stats_.GetCounter(Stats::DOOM_RECENT)));
1881 stats_.SetCounter(Stats::FATAL_ERROR, 0);
1882 stats_.SetCounter(Stats::DOOM_CACHE, 0);
1883 stats_.SetCounter(Stats::DOOM_RECENT, 0);
1885 int64 total_hours = stats_.GetCounter(Stats::TIMER) / 120;
1900 int64 use_hours = stats_.GetCounter(Stats::LAST_REPORT_TIMER) / 120;
1901 stats_.SetCounter(Stats::LAST_REPORT_TIMER, stats_.GetCounter(Stats::TIMER));
1915 int64 trim_rate = stats_.GetCounter(Stats::TRIM_ENTRY) / use_hours;
1943 stats_.SetCounter(Stats::TRIM_ENTRY, 0);