Home | History | Annotate | Download | only in disk_cache

Lines Matching refs:stats_

506   // stats_ and rankings_ may end up calling back to us so we better be enabled.
508 if (!stats_.Init(this, &data_->header.stats))
522 stats_.Store();
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);
742 stats_.OnEvent(Stats::CREATE_ERROR);
750 stats_.OnEvent(Stats::CREATE_ERROR);
762 stats_.OnEvent(Stats::CREATE_ERROR);
788 stats_.OnEvent(Stats::CREATE_HIT);
929 stats_.OnEvent(Stats::DOOM_ENTRY);
994 stats_.ModifyStorageStats(old_size, new_size);
998 stats_.ModifyStorageStats(0, size);
1057 int64 last_report = stats_.GetCounter(Stats::LAST_REPORT);
1060 stats_.SetCounter(Stats::LAST_REPORT, Time::Now().ToInternalValue());
1075 int64 use_time = stats_.GetCounter(Stats::TIMER);
1077 CACHE_UMA(PERCENTAGE, "FirstHitRatio", 0, stats_.GetHitRatio());
1089 int large_entries_bytes = stats_.GetLargeEntriesSize();
1094 CACHE_UMA(PERCENTAGE, "FirstResurrectRatio", 0, stats_.GetResurrectRatio());
1103 stats_.ResetRatios();
1111 stats_.OnEvent(Stats::FATAL_ERROR);
1132 stats_.OnEvent(an_event);
1148 stats_.OnEvent(Stats::TIMER);
1149 int64 time = stats_.GetCounter(Stats::TIMER);
1150 int64 current = stats_.GetCounter(Stats::OPEN_ENTRIES);
1159 stats_.SetCounter(Stats::OPEN_ENTRIES, current);
1160 stats_.SetCounter(Stats::MAX_ENTRIES, max_refs_);
1180 stats_.Store();
1347 stats_.GetItems(stats);
1452 int64 errors = stats_.GetCounter(Stats::FATAL_ERROR);
1453 int64 full_dooms = stats_.GetCounter(Stats::DOOM_CACHE);
1454 int64 partial_dooms = stats_.GetCounter(Stats::DOOM_RECENT);
1455 int64 last_report = stats_.GetCounter(Stats::LAST_REPORT);
1471 stats_.SetCounter(Stats::FATAL_ERROR, errors);
1472 stats_.SetCounter(Stats::DOOM_CACHE, full_dooms);
1473 stats_.SetCounter(Stats::DOOM_RECENT, partial_dooms);
1474 stats_.SetCounter(Stats::LAST_REPORT, last_report);
1818 stats_.OnEvent(Stats::CREATE_MISS);
1829 stats_.OnEvent(Stats::RESURRECT_HIT);
1845 stats_.OnEvent(Stats::INVALID_ENTRY);
1906 static_cast<int>(stats_.GetCounter(Stats::OPEN_ENTRIES)));
1908 static_cast<int>(stats_.GetCounter(Stats::MAX_ENTRIES)));
1909 stats_.SetCounter(Stats::MAX_ENTRIES, 0);
1912 static_cast<int>(stats_.GetCounter(Stats::FATAL_ERROR)));
1914 static_cast<int>(stats_.GetCounter(Stats::DOOM_CACHE)));
1916 static_cast<int>(stats_.GetCounter(Stats::DOOM_RECENT)));
1917 stats_.SetCounter(Stats::FATAL_ERROR, 0);
1918 stats_.SetCounter(Stats::DOOM_CACHE, 0);
1919 stats_.SetCounter(Stats::DOOM_RECENT, 0);
1921 int64 total_hours = stats_.GetCounter(Stats::TIMER) / 120;
1936 int64 use_hours = stats_.GetCounter(Stats::LAST_REPORT_TIMER) / 120;
1937 stats_.SetCounter(Stats::LAST_REPORT_TIMER, stats_.GetCounter(Stats::TIMER));
1949 stats_.GetHitRatio());
1951 int64 trim_rate = stats_.GetCounter(Stats::TRIM_ENTRY) / use_hours;
1961 int large_entries_bytes = stats_.GetLargeEntriesSize();
1967 stats_.GetResurrectRatio());
1978 stats_.ResetRatios();
1979 stats_.SetCounter(Stats::TRIM_ENTRY, 0);