/external/guava/guava/src/com/google/common/cache/ |
D | CacheStats.java | 58 private final long missCount; field in CacheStats 70 public CacheStats(long hitCount, long missCount, long loadSuccessCount, in CacheStats() argument 73 checkArgument(missCount >= 0); in CacheStats() 80 this.missCount = missCount; in CacheStats() 92 return hitCount + missCount; in requestCount() 118 public long missCount() { in missCount() method in CacheStats 119 return missCount; in missCount() 133 return (requestCount == 0) ? 0.0 : (double) missCount / requestCount; in missRate() 215 Math.max(0, missCount - other.missCount), in minus() 231 missCount + other.missCount, in plus() [all …]
|
D | AbstractCache.java | 206 private final AtomicLong missCount = new AtomicLong(); field in AbstractCache.SimpleStatsCounter 225 missCount.addAndGet(count); in recordMisses() 249 missCount.get(), in snapshot() 262 missCount.addAndGet(otherStats.missCount()); in incrementBy()
|
/external/guava/guava-tests/test/com/google/common/cache/ |
D | CacheLoadingTest.java | 103 assertEquals(0, stats.missCount()); in testLoad() 111 assertEquals(1, stats.missCount()); in testLoad() 119 assertEquals(2, stats.missCount()); in testLoad() 128 assertEquals(2, stats.missCount()); in testLoad() 135 assertEquals(2, stats.missCount()); in testLoad() 144 assertEquals(2, stats.missCount()); in testLoad() 152 assertEquals(3, stats.missCount()); in testLoad() 176 assertEquals(0, stats.missCount()); in testReload() 183 assertEquals(1, stats.missCount()); in testReload() 191 assertEquals(1, stats.missCount()); in testReload() [all …]
|
D | CacheManualTest.java | 32 assertEquals(0, stats.missCount()); in testGetIfPresent() 42 assertEquals(1, stats.missCount()); in testGetIfPresent() 52 assertEquals(2, stats.missCount()); in testGetIfPresent() 64 assertEquals(2, stats.missCount()); in testGetIfPresent() 74 assertEquals(3, stats.missCount()); in testGetIfPresent() 86 assertEquals(3, stats.missCount()); in testGetIfPresent() 96 assertEquals(3, stats.missCount()); in testGetIfPresent() 108 assertEquals(0, stats.missCount()); in testGetAllPresent() 115 assertEquals(0, stats.missCount()); in testGetAllPresent() 122 assertEquals(3, stats.missCount()); in testGetAllPresent() [all …]
|
D | CacheStatsTest.java | 33 assertEquals(0, stats.missCount()); in testEmpty() 49 assertEquals(13, stats.missCount()); in testSingle() 68 assertEquals(34, diff.missCount()); in testMinus() 89 assertEquals(60, sum.missCount()); in testPlus()
|
D | AbstractCacheTest.java | 89 assertEquals(0, stats.missCount()); in testEmptySimpleStats() 121 int missCount = 23; in testSingleSimpleStats() local 122 assertEquals(missCount, stats.missCount()); in testSingleSimpleStats() 123 assertEquals(((double) missCount)/requestCount, stats.missRate()); in testSingleSimpleStats()
|
D | PopulatedCachesTest.java | 78 assertEquals(WARMUP_SIZE, cache.stats().missCount()); in testContainsKey_found() 101 assertEquals(WARMUP_SIZE, cache.stats().missCount()); in testPut_populated() 122 assertEquals(WARMUP_SIZE, cache.stats().missCount()); in testPutIfAbsent_populated() 136 assertEquals(WARMUP_SIZE, cache.stats().missCount()); in testPutAll_populated() 157 assertEquals(WARMUP_SIZE, cache.stats().missCount()); in testReplace_populated()
|
D | LocalLoadingCacheTest.java | 95 assertEquals(1, stats.missCount()); in testStats() 108 assertEquals(1, stats.missCount()); in testStats() 119 assertEquals(2, stats.missCount()); in testStats() 133 assertEquals(3, stats.missCount()); in testStats()
|