Package org.eclipse.epsilon.profiling
Class ProfilerTarget
- java.lang.Object
-
- org.eclipse.epsilon.profiling.ProfilerTarget
-
public class ProfilerTarget extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected long
aggregatedWorked
protected List<ProfilerTarget>
children
protected String
data
protected long
globalEndTime
protected Stopwatch
globalStopwatch
protected long
internalEndTime
protected Stopwatch
internalStopwatch
protected long
internalWorked
protected ModuleElement
moduleElement
protected String
name
protected ProfilerTarget
parent
protected long
startTime
-
Constructor Summary
Constructors Constructor Description ProfilerTarget(String name, Stopwatch globalStopwatch, String data, ModuleElement moduleElement)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChild(ProfilerTarget child)
List<ProfilerTarget>
getChildren()
String
getData()
ModuleElement
getModuleElement()
String
getName()
ProfilerTarget
getParent()
long
getWorked(boolean aggregate)
boolean
isRunning()
void
pause()
void
resume()
void
setData(String data)
void
setModuleElement(ModuleElement moduleElement)
void
setName(String name)
void
stop()
-
-
-
Field Detail
-
name
protected String name
-
startTime
protected long startTime
-
globalEndTime
protected long globalEndTime
-
internalEndTime
protected long internalEndTime
-
aggregatedWorked
protected long aggregatedWorked
-
internalWorked
protected long internalWorked
-
children
protected List<ProfilerTarget> children
-
parent
protected ProfilerTarget parent
-
data
protected String data
-
globalStopwatch
protected Stopwatch globalStopwatch
-
internalStopwatch
protected Stopwatch internalStopwatch
-
moduleElement
protected ModuleElement moduleElement
-
-
Constructor Detail
-
ProfilerTarget
public ProfilerTarget(String name, Stopwatch globalStopwatch, String data, ModuleElement moduleElement)
-
-
Method Detail
-
getName
public String getName()
-
setName
public void setName(String name)
-
pause
public void pause()
-
resume
public void resume()
-
stop
public void stop()
-
addChild
public void addChild(ProfilerTarget child)
-
getChildren
public List<ProfilerTarget> getChildren()
-
getParent
public ProfilerTarget getParent()
-
isRunning
public boolean isRunning()
-
getWorked
public long getWorked(boolean aggregate)
-
getData
public String getData()
-
setData
public void setData(String data)
-
getModuleElement
public ModuleElement getModuleElement()
-
setModuleElement
public void setModuleElement(ModuleElement moduleElement)
-
-