@MXBean public interface WindowCacheStats
WindowCache
.Modifier and Type | Method and Description |
---|---|
default double |
getAverageLoadTime()
Average time in nanoseconds for loading new values.
|
long |
getEvictionCount()
Number of cache evictions
|
default double |
getEvictionRatio()
Ratio of cache evictions.
|
long |
getHitCount()
Number of cache hits
|
default double |
getHitRatio()
Ratio of cache requests which were hits defined as
hitCount / requestCount , or 1.0 when
requestCount == 0 . |
default long |
getLoadCount()
Total number of times that the cache attempted to load new values.
|
long |
getLoadFailureCount()
Number of failed loads
|
default double |
getLoadFailureRatio()
Ratio of cache load attempts which threw exceptions.
|
long |
getLoadSuccessCount()
Number of successful loads
|
long |
getMissCount()
Number of cache misses.
|
default double |
getMissRatio()
Ratio of cache requests which were misses defined as
missCount / requestCount , or 0.0 when
requestCount == 0 . |
long |
getOpenByteCount()
Number of bytes cached
|
Map<String,Long> |
getOpenByteCountPerRepository()
Number of bytes cached per repository
|
static long |
getOpenBytes()
Deprecated.
use
getOpenByteCount() instead |
long |
getOpenFileCount()
Number of pack files kept open by the cache
|
static int |
getOpenFiles()
Deprecated.
use
getOpenFileCount() instead |
default long |
getRequestCount()
Number of times the cache returned either a cached or uncached value.
|
static WindowCacheStats |
getStats() |
long |
getTotalLoadTime()
Total time in nanoseconds the cache spent loading new values.
|
void |
resetCounters()
Reset counters.
|
@Deprecated static int getOpenFiles()
getOpenFileCount()
instead@Deprecated static long getOpenBytes()
getOpenByteCount()
insteadstatic WindowCacheStats getStats()
long getHitCount()
default double getHitRatio()
hitCount / requestCount
, or 1.0
when
requestCount == 0
. Note that hitRate + missRate =~ 1.0
.long getMissCount()
default double getMissRatio()
missCount / requestCount
, or 0.0
when
requestCount == 0
. Note that hitRate + missRate =~ 1.0
.
Cache misses include all requests which weren't cache hits, including
requests which resulted in either successful or failed loading attempts.long getLoadSuccessCount()
long getLoadFailureCount()
default double getLoadFailureRatio()
loadFailureCount / (loadSuccessCount + loadFailureCount)
, or
0.0
when loadSuccessCount + loadFailureCount == 0
.default long getLoadCount()
loadSuccessCount + loadFailureCount
.loadSuccessCount + loadFailureCount
long getEvictionCount()
default double getEvictionRatio()
evictionCount / requestCount
, or 0.0
when
requestCount == 0
.default long getRequestCount()
hitCount + missCount
.hitCount + missCount
default double getAverageLoadTime()
totalLoadTime / (loadSuccessCount + loadFailureCount)
.long getTotalLoadTime()
long getOpenFileCount()
long getOpenByteCount()
Map<String,Long> getOpenByteCountPerRepository()
void resetCounters()
Copyright © 2020 Eclipse JGit Project. All rights reserved.