]> source.dussan.org Git - jgit.git/commitdiff
DfsReaderIoStats: getters to object size index micros/bytes 56/1199756/2
authorIvan Frade <ifrade@google.com>
Tue, 20 Aug 2024 19:54:04 +0000 (12:54 -0700)
committerMatthias Sohn <matthias.sohn@sap.com>
Tue, 27 Aug 2024 13:07:24 +0000 (15:07 +0200)
These properties of the stats object don't have a getter and it is
required to export those values in logs.

Change-Id: I7f91a38ee4d02668aff1cbc8424ea669cdb1d2f7

org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsReaderIoStats.java

index 1e5e439598084129e8dc6cd9a5bc70cde7eec14e..fcfa3e0dee8c6bdc7847e1a2a814d73227e788fa 100644 (file)
@@ -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.
         *