Package org.apache.uima.util.impl
Class SerializationMeasures
java.lang.Object
org.apache.uima.util.impl.SerializationMeasures
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
each instance of this class remembers a set of statDetail instances to do bulk operations against that set of the statisticsstatic class
Statistical 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
FieldsModifier and TypeFieldDescriptionint
long
static final int
long
long
long
long
long
long
final SerializationMeasures.StatDetail[]
long
int
long
long
long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
accumulate results for multiple filesprivate static int
maxIndexToZeros
(int[] c) helper method to truncate printing of lots of trailing 0sprivate static float
percent
(long a, long b) (package private) SerializationMeasures.StatDetail[]
toStatDetails
(SlotKinds.SlotKind[] kinds) toString()
-
Field Details
-
MAX_NBR_ENCODE_LENGTH
public static final int MAX_NBR_ENCODE_LENGTH- See Also:
-
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
-
allSlots
-
strSlots
-
-
Constructor Details
-
SerializationMeasures
public SerializationMeasures()
-
-
Method Details
-
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
-
accum
accumulate results for multiple files- Parameters:
o
- -
-
toString
-