Package org.apache.uima.util.impl
Class SerializationMeasures
- java.lang.Object
-
- org.apache.uima.util.impl.SerializationMeasures
-
public class SerializationMeasures extends java.lang.ObjectStructure: StatDetail str has neh for offset, length, dictionary hits/misses indexedFs has neh for diffs modHeap named, has neh for diffs, heap for values
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classSerializationMeasures.AllStatDetailseach instance of this class remembers a set of statDetail instances to do bulk operations against that set of the statisticsstatic classSerializationMeasures.StatDetailStatistical details There's instances of this class for - the main heap - the aux heaps - the string offsets, the string lengths Heap: xxxx [name-of-delta: [Total: <TotalBytes>(negative%) Histo: a(neg%) b(neg%) c(neg%) d(neg%) e(neg%)]] 2 styles: one uses only one counter, no delta - used for byte, short, and long heaps other is for main heap, uses 4 deltas.
-
Field Summary
Fields Modifier and Type Field Description SerializationMeasures.AllStatDetailsallSlotsintheaderlongmainHeapFSsstatic intMAX_NBR_ENCODE_LENGTHlongorigAuxByteArrayRefslongorigAuxByteslongorigAuxLongArrayRefslongorigAuxLongslongorigAuxShortArrayRefslongorigAuxShortsSerializationMeasures.StatDetail[]statDetailslongstringsCommonCharsintstringsNbrCommonlongstringsSavedExactlongstringsSavedSubstrSerializationMeasures.AllStatDetailsstrSlotslongtotalTime
-
Constructor Summary
Constructors Constructor Description SerializationMeasures()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccum(SerializationMeasures o)accumulate results for multiple filesprivate static intmaxIndexToZeros(int[] c)helper method to truncate printing of lots of trailing 0sprivate static floatpercent(long a, long b)(package private) SerializationMeasures.StatDetail[]toStatDetails(SlotKinds.SlotKind[] kinds)java.lang.StringtoString()
-
-
-
Field Detail
-
MAX_NBR_ENCODE_LENGTH
public static final int MAX_NBR_ENCODE_LENGTH
- See Also:
- Constant Field Values
-
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
-
statDetails
public final SerializationMeasures.StatDetail[] statDetails
-
allSlots
public final SerializationMeasures.AllStatDetails allSlots
-
strSlots
public final SerializationMeasures.AllStatDetails strSlots
-
-
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)
-
toStatDetails
SerializationMeasures.StatDetail[] toStatDetails(SlotKinds.SlotKind[] kinds)
-
accum
public void accum(SerializationMeasures o)
accumulate results for multiple files- Parameters:
o- -
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-