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