]> source.dussan.org Git - jgit.git/commit
DFS block cache: report index load and evict stats 94/189194/3
authorAlina Djamankulova <adjama@google.com>
Wed, 29 Dec 2021 23:07:27 +0000 (15:07 -0800)
committerAlina Djamankulova <adjama@google.com>
Fri, 21 Jan 2022 19:27:31 +0000 (11:27 -0800)
commitb536dbdb9b7099511362abe825cfd50b942ccf7c
treec30df5c4c7389ec908e352292f03ed02fc68381b
parentf77519775d7cd5638be71e91f70ff11fd653e6c5
DFS block cache: report index load and evict stats

Enhance cache performance monitoring for large data such as pack and
bitmap indexes. Provide details about what is loaded and evicted from
cache like total number of cache hits, time in cache before eviction.

Add a custom consumer to report loading events and eviction events when
enabled.

Signed-off-by: Alina Djamankulova <adjama@google.com>
Change-Id: I5739325db7ff7ec370e4defd8f7e46f1c3f5d2dd
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/dfs/DfsBlockCacheTest.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsBlockCache.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsBlockCacheConfig.java