Dashboard Builder Commons 6.0.0.CR2

org.jboss.dashboard.profiler
Class TimeTrace

java.lang.Object
  extended by org.jboss.dashboard.profiler.StackTrace
      extended by org.jboss.dashboard.profiler.TimeTrace

public class TimeTrace
extends StackTrace

A time trace is a way to group a sequence of stack traces in a hierarchical way.


Field Summary
protected  List<TimeTrace> children
           
protected  CodeBlockTraces codeBlockTraces
           
protected  int level
           
protected  TimeTrace parent
           
protected  List<StackTrace> stackTraces
           
 
Fields inherited from class org.jboss.dashboard.profiler.StackTrace
context, creationTimeMillis, stackTrace
 
Constructor Summary
TimeTrace(StackTraceElement[] stackTrace, List<StackTrace> samples, List<TimeTrace> children, CodeBlockTrace context)
           
 
Method Summary
 long getBeginTimeMillis()
           
 List<TimeTrace> getChildren()
           
 CodeBlockTraces getCodeBlockTraces()
           
 long getElapsedTimeMillis()
           
 long getEndTimeMillis()
           
 int getLevel()
           
 TimeTrace getParent()
           
 long getSampleAverageTimeMillis()
           
 long getSelfTimeMillis()
           
 List<StackTrace> getStackTraces()
           
 String printChildStackTrace()
          If this is a child stack trace (has a parent) then only print the stack trace fragment that belongs exclusively to itself.
 void setChildren(List<TimeTrace> children)
           
 void setLevel(int level)
           
 void setParent(TimeTrace parent)
           
 void setStackTraces(List<StackTrace> stackTraces)
           
 
Methods inherited from class org.jboss.dashboard.profiler.StackTrace
eq, equals, equals, first, from, get, getContext, getCreationTimeMillis, intersect, last, length, printStackElement, printStackTrace, reverseIndex, setContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parent

protected TimeTrace parent

stackTraces

protected List<StackTrace> stackTraces

children

protected List<TimeTrace> children

codeBlockTraces

protected CodeBlockTraces codeBlockTraces

level

protected int level
Constructor Detail

TimeTrace

public TimeTrace(StackTraceElement[] stackTrace,
                 List<StackTrace> samples,
                 List<TimeTrace> children,
                 CodeBlockTrace context)
Method Detail

getParent

public TimeTrace getParent()

setParent

public void setParent(TimeTrace parent)

getChildren

public List<TimeTrace> getChildren()

setChildren

public void setChildren(List<TimeTrace> children)

getLevel

public int getLevel()

setLevel

public void setLevel(int level)

getStackTraces

public List<StackTrace> getStackTraces()

setStackTraces

public void setStackTraces(List<StackTrace> stackTraces)

getCodeBlockTraces

public CodeBlockTraces getCodeBlockTraces()

getBeginTimeMillis

public long getBeginTimeMillis()

getEndTimeMillis

public long getEndTimeMillis()

getElapsedTimeMillis

public long getElapsedTimeMillis()

getSampleAverageTimeMillis

public long getSampleAverageTimeMillis()

getSelfTimeMillis

public long getSelfTimeMillis()

printChildStackTrace

public String printChildStackTrace()
If this is a child stack trace (has a parent) then only print the stack trace fragment that belongs exclusively to itself.
Else print the full stack trace.


Dashboard Builder Commons 6.0.0.CR2

Copyright © 2012-2013 JBoss by Red Hat. All Rights Reserved.