From 6e15524470d9b822a10644cee47e8475eea9f049 Mon Sep 17 00:00:00 2001 From: Ivan Frade Date: Tue, 20 Aug 2024 12:54:04 -0700 Subject: DfsReaderIoStats: getters to object size index micros/bytes These properties of the stats object don't have a getter and it is required to export those values in logs. Change-Id: I7f91a38ee4d02668aff1cbc8424ea669cdb1d2f7 --- .../jgit/internal/storage/dfs/DfsReaderIoStats.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsReaderIoStats.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsReaderIoStats.java index 1e5e439598..fcfa3e0dee 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsReaderIoStats.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsReaderIoStats.java @@ -248,6 +248,15 @@ public class DfsReaderIoStats { return stats.readCommitGraphBytes; } + /** + * Get total number of bytes read from object size indexes. + * + * @return total number of bytes read from object size indexes. + */ + public long getObjectSizeIndexBytes() { + return stats.readObjectSizeIndexBytes; + } + /** * Get total microseconds spent reading pack indexes. * @@ -284,6 +293,15 @@ public class DfsReaderIoStats { return stats.readCommitGraphMicros; } + /** + * Get total microseconds spent reading object size indexes. + * + * @return total microseconds spent reading object size indexes. + */ + public long getReadObjectSizeIndexMicros() { + return stats.readObjectSizeIndexMicros; + } + /** * Get total number of block cache hits. * -- cgit v1.2.3