|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.jhu.ece.iacl.jist.pipeline.PerformanceSummary
public class PerformanceSummary
Summary of start and stop times for different tasks within an algorithm. This class also records the used and total memory at the time a task completes.
Nested Class Summary | |
---|---|
protected static class |
PerformanceSummary.TimeAndMemoryStamp
The Class TimeAndMemoryStamp. |
Field Summary | |
---|---|
protected java.util.ArrayList<PerformanceSummary> |
children
Children performance summaries. |
protected java.lang.management.ThreadMXBean |
tb
Thread to get cpu time. |
protected java.util.ArrayList<PerformanceSummary.TimeAndMemoryStamp> |
timeAndMemStamps
List of time and memory stamps for different algorithm steps. |
Constructor Summary | |
---|---|
PerformanceSummary()
Default constructor. |
Method Summary | |
---|---|
PerformanceSummary |
clone()
Returns clone of performance summary. |
static java.lang.String |
formatTime(long time)
Format millisecond time to be in terms of days, hrs, minutes, and seconds. |
java.util.ArrayList<java.lang.Long> |
getAllElapsedActualTimes()
Get list of elapsed times in msec. |
java.util.ArrayList<java.lang.Long> |
getAllElapsedCPUTimes()
Get list of elapsed times in msec. |
java.util.ArrayList<java.lang.String> |
getAllTaskNames()
Get list of task names. |
int |
getPeakAllocatedMemory()
Get peak allocated memory. |
int |
getPeakUsedMemory()
Get peak used memory. |
java.lang.String |
getSummary()
Return long summary of elapsed time. |
long |
getTotalElapsedActualTime()
Get cumulative elapsed time for all tasks in msec. |
long |
getTotalElapsedCPUTime()
Get cumulative elapsed time for all tasks in msec. |
void |
record(PerformanceSummary child)
Add child performance summary to this summary. |
void |
record(java.lang.String label,
long startTime,
long stopTime,
long realStartTime,
long realStopTime)
Record completion of task. |
java.lang.String |
toString()
Return short summary of elapsed time. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.util.ArrayList<PerformanceSummary.TimeAndMemoryStamp> timeAndMemStamps
protected java.util.ArrayList<PerformanceSummary> children
protected transient java.lang.management.ThreadMXBean tb
Constructor Detail |
---|
public PerformanceSummary()
Method Detail |
---|
public PerformanceSummary clone()
clone
in class java.lang.Object
public static java.lang.String formatTime(long time)
time
- elapsed time in milliseconds
public java.util.ArrayList<java.lang.Long> getAllElapsedCPUTimes()
public java.util.ArrayList<java.lang.Long> getAllElapsedActualTimes()
public java.util.ArrayList<java.lang.String> getAllTaskNames()
public int getPeakAllocatedMemory()
public int getPeakUsedMemory()
public java.lang.String getSummary()
public long getTotalElapsedCPUTime()
public long getTotalElapsedActualTime()
public void record(PerformanceSummary child)
child
- the childpublic void record(java.lang.String label, long startTime, long stopTime, long realStartTime, long realStopTime)
label
- taskNamestartTime
- Start Time in msecstopTime
- Stop Time in msecrealStartTime
- the real start timerealStopTime
- the real stop timepublic java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |