public class TraceStep extends Object implements Serializable
| Constructor and Description |
|---|
TraceStep(String aCall)
Creates a new trace step.
|
TraceStep(String aCall,
IStatsProducer aProducer)
Creates a new trace step.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(TraceStep p)
Adds a new child to this step.
|
void |
appendToCall(String s)
Appends additional string to the call description.
|
String |
generateTrace() |
String |
getCall() |
List<TraceStep> |
getChildren() |
long |
getDuration()
Returns the total duration of this step.
|
TraceStep |
getLastStep()
Returns the last step in this execution.
|
long |
getNetDuration()
Returns the net duration, which means total duration minus the duration of all children.
|
int |
getNumberOfIncludedSteps() |
TraceStep |
getParent()
Returns the parent step.
|
IStatsProducer |
getProducer()
Returns associated producer.
|
boolean |
isAborted()
Returns true if this step is marked as aborted/exceptional.
|
void |
setAborted() |
void |
setAborted(boolean aborted) |
void |
setDuration(long duration) |
void |
setParent(TraceStep step)
Sets the parent step of this step.
|
String |
toDetails(int ident) |
String |
toString() |
public TraceStep(String aCall)
aCall - string description of the call.public TraceStep(String aCall, IStatsProducer aProducer)
aCall - call description.aProducer - the executing producer.public String getCall()
public void setParent(TraceStep step)
step - public TraceStep getParent()
public TraceStep getLastStep()
public String toDetails(int ident)
public void addChild(TraceStep p)
p - public String generateTrace()
public boolean isAborted()
public void setAborted(boolean aborted)
public void setAborted()
public long getDuration()
public long getNetDuration()
public void setDuration(long duration)
public void appendToCall(String s)
s - string to append.public int getNumberOfIncludedSteps()
public IStatsProducer getProducer()
Copyright © 2010-2017 anotheria.net. All Rights Reserved.