Home
last modified time | relevance | path

Searched refs:totalLoadTime (Results 1 – 5 of 5) sorted by relevance

/external/guava/guava/src/com/google/common/cache/
DCacheStats.java69 private final long totalLoadTime; field in CacheStats
79 long loadExceptionCount, long totalLoadTime, long evictionCount) { in CacheStats() argument
84 checkArgument(totalLoadTime >= 0); in CacheStats()
91 this.totalLoadTime = totalLoadTime; in CacheStats()
192 public long totalLoadTime() { in totalLoadTime() method in CacheStats
193 return totalLoadTime; in totalLoadTime()
204 : (double) totalLoadTime / totalLoadCount; in averageLoadPenalty()
226 Math.max(0, totalLoadTime - other.totalLoadTime), in minus()
242 totalLoadTime + other.totalLoadTime, in plus()
249 totalLoadTime, evictionCount); in hashCode()
[all …]
DAbstractCache.java213 private final LongAddable totalLoadTime = LongAddables.create(); field in AbstractCache.SimpleStatsCounter
240 totalLoadTime.add(loadTime); in recordLoadSuccess()
246 totalLoadTime.add(loadTime); in recordLoadException()
261 totalLoadTime.sum(), in snapshot()
274 totalLoadTime.add(otherStats.totalLoadTime()); in incrementBy()
/external/guava/guava-tests/test/com/google/common/cache/
DAbstractCacheTest.java111 assertEquals(0, stats.totalLoadTime()); in testEmptySimpleStats()
144 assertEquals(214, stats.totalLoadTime()); in testSingleSimpleStats()
150 long totalLoadTime = 0; in testSimpleStatsIncrementBy() local
158 totalLoadTime += i; in testSimpleStatsIncrementBy()
162 totalLoadTime += i; in testSimpleStatsIncrementBy()
177 totalLoadTime += i; in testSimpleStatsIncrementBy()
181 totalLoadTime += i; in testSimpleStatsIncrementBy()
191 assertEquals(new CacheStats(38, 60, 44, 54, totalLoadTime, 66), in testSimpleStatsIncrementBy()
DLocalLoadingCacheTest.java93 long totalLoadTime = stats.totalLoadTime(); in testStats() local
94 assertTrue(totalLoadTime >= 0); in testStats()
117 assertTrue(stats.totalLoadTime() >= totalLoadTime); in testStats()
118 totalLoadTime = stats.totalLoadTime(); in testStats()
131 assertTrue(stats.totalLoadTime() >= totalLoadTime); in testStats()
132 totalLoadTime = stats.totalLoadTime(); in testStats()
DCacheStatsTest.java39 assertEquals(0, stats.totalLoadTime()); in testEmpty()
55 assertEquals(23, stats.totalLoadTime()); in testSingle()
74 assertEquals(14, diff.totalLoadTime()); in testMinus()
95 assertEquals(48, sum.totalLoadTime()); in testPlus()