Lines Matching refs:Stats
575 stats_.OnEvent(Stats::DOOM_CACHE); in SyncDoomAllEntries()
632 stats_.OnEvent(Stats::DOOM_RECENT); in SyncDoomEntriesSince()
677 stats_.OnEvent(Stats::OPEN_MISS); in OpenEntryImpl()
684 stats_.OnEvent(Stats::OPEN_MISS); in OpenEntryImpl()
692 stats_.OnEvent(Stats::OPEN_HIT); in OpenEntryImpl()
742 stats_.OnEvent(Stats::CREATE_ERROR); in CreateEntryImpl()
750 stats_.OnEvent(Stats::CREATE_ERROR); in CreateEntryImpl()
762 stats_.OnEvent(Stats::CREATE_ERROR); in CreateEntryImpl()
788 stats_.OnEvent(Stats::CREATE_HIT); in CreateEntryImpl()
929 stats_.OnEvent(Stats::DOOM_ENTRY); in InternalDoomEntry()
1057 int64 last_report = stats_.GetCounter(Stats::LAST_REPORT); in ShouldReportAgain()
1060 stats_.SetCounter(Stats::LAST_REPORT, Time::Now().ToInternalValue()); in ShouldReportAgain()
1075 int64 use_time = stats_.GetCounter(Stats::TIMER); in FirstEviction()
1111 stats_.OnEvent(Stats::FATAL_ERROR); in CriticalError()
1131 void BackendImpl::OnEvent(Stats::Counters an_event) { in OnEvent()
1148 stats_.OnEvent(Stats::TIMER); in OnStatsTimer()
1149 int64 time = stats_.GetCounter(Stats::TIMER); in OnStatsTimer()
1150 int64 current = stats_.GetCounter(Stats::OPEN_ENTRIES); in OnStatsTimer()
1159 stats_.SetCounter(Stats::OPEN_ENTRIES, current); in OnStatsTimer()
1160 stats_.SetCounter(Stats::MAX_ENTRIES, max_refs_); in OnStatsTimer()
1452 int64 errors = stats_.GetCounter(Stats::FATAL_ERROR); in RestartCache()
1453 int64 full_dooms = stats_.GetCounter(Stats::DOOM_CACHE); in RestartCache()
1454 int64 partial_dooms = stats_.GetCounter(Stats::DOOM_RECENT); in RestartCache()
1455 int64 last_report = stats_.GetCounter(Stats::LAST_REPORT); in RestartCache()
1471 stats_.SetCounter(Stats::FATAL_ERROR, errors); in RestartCache()
1472 stats_.SetCounter(Stats::DOOM_CACHE, full_dooms); in RestartCache()
1473 stats_.SetCounter(Stats::DOOM_RECENT, partial_dooms); in RestartCache()
1474 stats_.SetCounter(Stats::LAST_REPORT, last_report); in RestartCache()
1818 stats_.OnEvent(Stats::CREATE_MISS); in ResurrectEntry()
1829 stats_.OnEvent(Stats::RESURRECT_HIT); in ResurrectEntry()
1845 stats_.OnEvent(Stats::INVALID_ENTRY); in DestroyInvalidEntry()
1906 static_cast<int>(stats_.GetCounter(Stats::OPEN_ENTRIES))); in ReportStats()
1908 static_cast<int>(stats_.GetCounter(Stats::MAX_ENTRIES))); in ReportStats()
1909 stats_.SetCounter(Stats::MAX_ENTRIES, 0); in ReportStats()
1912 static_cast<int>(stats_.GetCounter(Stats::FATAL_ERROR))); in ReportStats()
1914 static_cast<int>(stats_.GetCounter(Stats::DOOM_CACHE))); in ReportStats()
1916 static_cast<int>(stats_.GetCounter(Stats::DOOM_RECENT))); in ReportStats()
1917 stats_.SetCounter(Stats::FATAL_ERROR, 0); in ReportStats()
1918 stats_.SetCounter(Stats::DOOM_CACHE, 0); in ReportStats()
1919 stats_.SetCounter(Stats::DOOM_RECENT, 0); in ReportStats()
1921 int64 total_hours = stats_.GetCounter(Stats::TIMER) / 120; in ReportStats()
1936 int64 use_hours = stats_.GetCounter(Stats::LAST_REPORT_TIMER) / 120; in ReportStats()
1937 stats_.SetCounter(Stats::LAST_REPORT_TIMER, stats_.GetCounter(Stats::TIMER)); in ReportStats()
1951 int64 trim_rate = stats_.GetCounter(Stats::TRIM_ENTRY) / use_hours; in ReportStats()
1979 stats_.SetCounter(Stats::TRIM_ENTRY, 0); in ReportStats()