Package org.apache.uima.util
Class AnalysisEnginePerformanceReports
java.lang.Object
org.apache.uima.util.AnalysisEnginePerformanceReports
A class that is useful for generating an Analysis Engine performance report from a
ProcessTrace object.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate intprivate ProcessTraceprivate intprivate intprivate intprivate NumberFormat -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddEventData(ProcessTraceEvent aEvent) intintintintprivate intgetSubEventDuration(ProcessTraceEvent aEvent, String[] aEventTypes) Gets the combined duration of all sub-events of certain types.intprivate StringtoPct(long numerator, long denomenator) Convert to percent string - to two decimal placestoString()
-
Field Details
-
mProcessTrace
-
mAnnotatorAnalysisTimes
-
mAnalysisTime
private int mAnalysisTime -
mFrameworkOverhead
private int mFrameworkOverhead -
mServiceWrapperOverhead
private int mServiceWrapperOverhead -
mServiceCallOverhead
private int mServiceCallOverhead -
mTotalTime
private int mTotalTime -
pctFormat
-
-
Constructor Details
-
AnalysisEnginePerformanceReports
-
-
Method Details
-
addEventData
-
getTotalTime
public int getTotalTime() -
getAnalysisTime
public int getAnalysisTime() -
getFrameworkOverhead
public int getFrameworkOverhead() -
getServiceWrapperOverhead
public int getServiceWrapperOverhead() -
getServiceCallOverhead
public int getServiceCallOverhead() -
getFullReport
-
toString
-
toPct
Convert to percent string - to two decimal places -
getSubEventDuration
Gets the combined duration of all sub-events of certain types. Will recurse into events that don't have the correct type but will not recurse inside a matching event (to avoid double-counting of any times).- Parameters:
aEvent- event whose subevents will be examinedaEventTypes- array of event types in which we are interested- Returns:
- sum of the durations of sub-events of
aEventwhose type is a member ofaEventTypes.
-