diff options
author | Ivan Frade <ifrade@google.com> | 2024-08-20 12:54:04 -0700 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2024-08-27 15:07:24 +0200 |
commit | 6e15524470d9b822a10644cee47e8475eea9f049 (patch) | |
tree | 65ad3c1ecffe828bb4e3c6103afacdfeac4be780 | |
parent | fa8aabc96f0cc3b0bc5a01397668697c4bfa7fb8 (diff) | |
download | jgit-6e15524470d9b822a10644cee47e8475eea9f049.tar.gz jgit-6e15524470d9b822a10644cee47e8475eea9f049.zip |
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
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsReaderIoStats.java | 18 |
1 files changed, 18 insertions, 0 deletions
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 @@ -249,6 +249,15 @@ public class DfsReaderIoStats { } /** + * 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. * * @return total microseconds spent reading pack indexes. @@ -285,6 +294,15 @@ public class DfsReaderIoStats { } /** + * 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. * * @return total number of block cache hits. |