public class ThreadProfile extends Object
Modifier and Type | Field and Description |
---|---|
protected Date |
beginDate
The begin date
|
protected CodeBlockTrace |
codeBlockInProgress
The current block in execution
|
protected Map<String,Object> |
contextProperties
Context properties collected during profiling.
|
protected static List<String> |
contextPropertyNames
All context property names that any thread profile can hold.
|
protected boolean |
elapsedTimeExceeded
Flag indicating that the thread elapsed time has overtaken a specified threshold (See the
maxThreadDurationInMillis property). |
protected Date |
endDate
The end date
|
protected ErrorReport |
errorReport
An error occurred during the thread execution (if any).
|
protected String |
id
The identifier
|
protected int |
largeStackTracesCount
Number of large stack traces captured fot this thread
|
protected int |
maxStackTraceLength
Maximum stack trace length allowed.
|
protected long |
maxThreadDurationInMillis
Maximum thread length allowed.
|
protected CodeBlockTrace |
rootCodeBlock
The root trace.
|
protected List<StackTrace> |
stackTraces
Stack trace samples captured by the profiler.
|
protected boolean |
stackTraceTooLarge
Flag indicating that a too large stack trace (defined by the
maxStackTraceLength property) has been produced by this thread. |
static String |
STATE_COMPLETED |
static String |
STATE_ERROR |
protected boolean |
targetThread
Force this thread to be kept by the profiler within the list of target threads.
|
protected Thread |
thread
The thread
|
static String |
THREAD_BEGIN_DATE |
static String |
THREAD_GROUP |
static String |
THREAD_ID |
static String |
USER_LOGIN |
static String |
USER_NAME |
Constructor and Description |
---|
ThreadProfile() |
protected String id
protected Date beginDate
protected Date endDate
protected Thread thread
protected CodeBlockTrace rootCodeBlock
protected CodeBlockTrace codeBlockInProgress
protected List<StackTrace> stackTraces
protected long maxThreadDurationInMillis
protected int maxStackTraceLength
protected boolean elapsedTimeExceeded
maxThreadDurationInMillis
property).protected boolean stackTraceTooLarge
maxStackTraceLength
property) has been produced by this thread.protected int largeStackTracesCount
protected Map<String,Object> contextProperties
protected static List<String> contextPropertyNames
protected ErrorReport errorReport
protected boolean targetThread
public static final String THREAD_ID
public static final String THREAD_BEGIN_DATE
public static final String THREAD_GROUP
public static final String USER_LOGIN
public static final String USER_NAME
public static final String STATE_ERROR
public static final String STATE_COMPLETED
public String getId()
public void setId(String id)
public Date getBeginDate()
public Date getEndDate()
public long getElapsedTime()
public Thread getThread()
public boolean isRunning()
public long getMaxThreadDurationInMillis()
public void setMaxThreadDurationInMillis(long maxThreadDurationInMillis)
public int getMaxStackTraceLength()
public void setMaxStackTraceLength(int maxStackTraceLength)
public boolean isElapsedTimeExceeded()
public boolean isStackTraceTooLarge()
public CodeBlockTrace getCodeBlockInProgress()
public CodeBlockTrace getRootCodeBlock()
public ErrorReport getErrorReport()
public void setErrorReport(ErrorReport errorReport)
public String getState()
public boolean isTargetThread()
public void setTargetThread(boolean targetThread)
public boolean containsCodeBlockType(CodeBlockType type)
public void begin()
public void end()
public String printContext()
public int getNumberOfSamples()
public long getSampleAverageTimeMillis()
public void clearStackTraces()
public void dumpStackTrace()
public long getProfileTimeMillis()
public List<TimeTrace> calculateTimeTraces()
protected List<TimeTrace> calculateTimeTraces(int sampleStart, int sampleEnd, int stackLevel)
protected TimeTrace createTimeTrace(int traceStart, int traceEnd, int stackLevel)
Copyright © 2012-2015 JBoss by Red Hat. All Rights Reserved.