Class SerializationMeasures


  • public class SerializationMeasures
    extends java.lang.Object
    Structure: StatDetail str has neh for offset, length, dictionary hits/misses indexedFs has neh for diffs modHeap named, has neh for diffs, heap for values
    • Field Detail

      • header

        public int header
      • origAuxByteArrayRefs

        public long origAuxByteArrayRefs
      • origAuxShortArrayRefs

        public long origAuxShortArrayRefs
      • origAuxLongArrayRefs

        public long origAuxLongArrayRefs
      • origAuxBytes

        public long origAuxBytes
      • origAuxShorts

        public long origAuxShorts
      • origAuxLongs

        public long origAuxLongs
      • mainHeapFSs

        public long mainHeapFSs
      • stringsNbrCommon

        public int stringsNbrCommon
      • stringsCommonChars

        public long stringsCommonChars
      • stringsSavedExact

        public long stringsSavedExact
      • stringsSavedSubstr

        public long stringsSavedSubstr
      • totalTime

        public long totalTime
    • Constructor Detail

      • SerializationMeasures

        public SerializationMeasures()
    • Method Detail

      • maxIndexToZeros

        private static int maxIndexToZeros​(int[] c)
        helper method to truncate printing of lots of trailing 0s
        Parameters:
        c -
        Returns:
        the index of the 1st 0 where all the rest are 0's, or the last index
      • percent

        private static float percent​(long a,
                                     long b)
      • accum

        public void accum​(SerializationMeasures o)
        accumulate results for multiple files
        Parameters:
        o - -
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object