jgit/org.eclipse.jgit.test/tst/org/eclipse/jgit
Matthias Sohn 42f0c7c9cb Enhance WindowCache statistics
Add the following statistics
- cache hit count and hit ratio
- cache miss count and miss ratio
- count of successful and failed loads
- rate of failed loads
- load, eviction and request count
- average and total load time

Use LongAdder instead of AtomicLong to implement counters in order to
improve scalability.

Optionally expose these metrics via JMX, they are registered with the
platform MBean server if the config option jmx.WindowCacheStats = true
in the user or system level git config.

Bug: 553573
Change-Id: Ia2d5246ef69b9c2bd594a23934424bc5800774aa
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2019-12-08 01:09:24 +01:00
..
api Fix NPE in CommitOnlyTest#getHead 2019-08-18 11:59:54 +02:00
attributes Deprecate Constants.CHARSET in favor of StandardCharsets.UTF_8 2018-09-04 10:53:10 +09:00
diff Deprecate Constants.CHARSET in favor of StandardCharsets.UTF_8 2018-09-04 10:53:10 +09:00
dircache Use Instant instead of milliseconds for filesystem timestamp handling 2019-07-18 03:27:52 +02:00
events Enable and fix 'Should be tagged with @Override' warning 2017-02-19 20:05:08 -04:00
fnmatch FileNameMatcherTest: Use Character.valueOf rather than new Character 2016-10-19 15:09:37 +09:00
gitrepo Make inner classes static where possible 2019-06-17 07:48:34 +02:00
ignore Deprecate Constants.CHARSET in favor of StandardCharsets.UTF_8 2018-09-04 10:53:10 +09:00
indexdiff Deprecate Constants.CHARSET in favor of StandardCharsets.UTF_8 2018-09-04 10:53:10 +09:00
internal/storage Enhance WindowCache statistics 2019-12-08 01:09:24 +01:00
junit Deprecate Constants.CHARSET in favor of StandardCharsets.UTF_8 2018-09-04 10:53:10 +09:00
lib Merge branch 'stable-4.11' into stable-5.0 2019-09-03 15:59:39 +02:00
merge Stop using deprecated Constants.CHARACTER_ENCODING 2019-08-09 12:11:41 +09:00
nls Enable and fix 'Should be tagged with @Override' warning 2017-02-19 20:05:08 -04:00
notes Enable and fix warnings about redundant specification of type arguments 2017-02-20 22:47:23 +01:00
patch Deprecate Constants.CHARSET in favor of StandardCharsets.UTF_8 2018-09-04 10:53:10 +09:00
revplot Make inner classes static where possible 2019-06-17 07:48:34 +02:00
revwalk Parse signature of GPG-signed commits 2018-09-04 20:13:16 +02:00
storage/file Ensure we use MockSystemReader in tests 2019-08-10 23:57:21 +02:00
submodule Merge branch 'stable-5.0' into stable-5.1 2018-10-06 16:56:12 +02:00
symlinks Fix remaining javadoc errors raised by doclint 2017-12-21 02:42:14 +01:00
test/resources ObjectDirectory: Add pack directory getter 2017-11-14 10:08:42 -05:00
transport Fix OpenSshConfigTest#config 2019-08-08 10:10:12 +02:00
treewalk WorkingTreeIterator: handle different timestamp resolutions 2019-09-17 00:36:22 +02:00
util Return a new instance from openSystemConfig and openUserConfig 2019-08-30 02:34:13 +02:00