|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.util.TraceTimingReportHelper
This class provides static methods for reporting based on TraceTiming
entry lists.
Supported API: false
Extendable: false
Nested Class Summary | |
(package private) static class |
TraceTimingReportHelper.UsageInfo
|
Field Summary | |
static String[] |
CATEGORIES
|
static boolean |
CATEGORIZE_PACKAGES
|
private static String |
CLASSNAME
|
private static boolean |
DEBUG
|
static String |
DEFAULT_CATEGORY
|
private static DebugWriter |
LOG
|
static String |
NEW_LINE
|
private static String |
RESOURCE
|
Constructor Summary | |
TraceTimingReportHelper()
|
Method Summary | |
private static StringBuffer |
appendFill(StringBuffer a_buffer,
char a_fill,
int a_count)
|
static Map |
buildTimingMap(List a_entryList,
int a_entryIndex)
This method builds a map of begin TraceTimingEntries and the elapsed time spent in each entry. |
static Map |
buildUsageMap(Map a_timingMap)
This method builds a usage map of the accumulated time spent in a given operation. |
private static int |
findNamedOrEndEntry(List a_entryList,
int a_index,
Set a_nameSet,
String a_endNameKey)
|
private static TraceTimingEntry |
getBeginEntry(List a_entryList,
int a_index)
|
private static String |
getCategory(String a_nameKey)
|
private static TraceTimingEntry |
getEndEntry(List a_entryList,
int a_index)
|
private static TraceTimingEntry |
getEntry(List a_entryList,
int a_index)
|
private static int |
incrementMap(Map a_map,
Object a_key)
|
private static int |
processCountTiming(List a_entryList,
int a_index,
Map a_countMap,
Map a_timingMap)
|
private static int |
processNameTiming(List a_entryList,
int a_index,
Set a_nameSet,
String a_otherNameKey,
Map a_timingMap)
|
static String |
reportCallTrace(List a_entryList,
boolean a_includeInfo)
This method returns report of the call trace with timings. |
static String |
reportCallTrace(List a_entryList,
boolean a_includeInfo,
int a_entryIndex)
This method returns report of the call trace with timings. |
static void |
reportCallTrace(List a_entryList,
StringBuffer a_buffer,
boolean a_includeInfo,
int a_entryIndex)
This method appends to the StringBuffer a report of the call trace with timings. |
static String |
reportTraceUsage(Map a_usageMap)
This method returns a report of each unique trace name with the count and average trace timings. |
static void |
reportTraceUsage(Map a_usageMap,
StringBuffer a_buffer)
This method appends to the StringBuffer a report of each unique trace name with the count and average trace timings. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private static final boolean DEBUG
private static final DebugWriter LOG
public static final String NEW_LINE
public static final String[] CATEGORIES
public static final boolean CATEGORIZE_PACKAGES
public static final String DEFAULT_CATEGORY
Constructor Detail |
public TraceTimingReportHelper()
Method Detail |
public static String reportCallTrace(List a_entryList, boolean a_includeInfo)
a_entryList
- List of TraceTimingEntries.a_includeInfo
- Include the associated entry information in the report.
public static void reportCallTrace(List a_entryList, StringBuffer a_buffer, boolean a_includeInfo, int a_entryIndex)
a_entryList
- List of TraceTimingEntries.a_buffer
- Buffer to append report to.a_includeInfo
- Include the associated entry information in the report.a_entryIndex
- Entry index to begin report with.public static String reportTraceUsage(Map a_usageMap)
a_usageMap
- Map of TraceTimingEntry names and UsageInfos.
public static void reportTraceUsage(Map a_usageMap, StringBuffer a_buffer)
a_usageMap
- Map of TraceTimingEntry names and UsageInfos.a_buffer
- Buffer to append report to.public static Map buildTimingMap(List a_entryList, int a_entryIndex)
a_entryList
- List of TraceTimingEntries.a_entryIndex
- Entry index to begin report with.
public static Map buildUsageMap(Map a_timingMap)
a_timingMap
- Timing map from a list of TraceEntries.
public static String reportCallTrace(List a_entryList, boolean a_includeInfo, int a_entryIndex)
a_entryList
- List of TraceTimingEntries.a_includeInfo
- Include the associated entry information in the report.a_entryIndex
- Entry index to begin report with.
private static int processNameTiming(List a_entryList, int a_index, Set a_nameSet, String a_otherNameKey, Map a_timingMap)
private static int processCountTiming(List a_entryList, int a_index, Map a_countMap, Map a_timingMap)
private static int incrementMap(Map a_map, Object a_key)
private static int findNamedOrEndEntry(List a_entryList, int a_index, Set a_nameSet, String a_endNameKey)
private static TraceTimingEntry getEntry(List a_entryList, int a_index)
private static TraceTimingEntry getBeginEntry(List a_entryList, int a_index)
private static TraceTimingEntry getEndEntry(List a_entryList, int a_index)
private static String getCategory(String a_nameKey)
private static StringBuffer appendFill(StringBuffer a_buffer, char a_fill, int a_count)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |