public class BasicProfiler extends java.lang.Object implements AppProfiler
Each column of the chart represents a single frames timing. Yellow represents the time it takes to perform all non-rendering activities (running enqueued tasks, stateManager.update, control.update(), etc) while the cyan portion represents the rendering time.
When the end of the chart is reached, the current frame cycles back around to the beginning.
Constructor and Description |
---|
BasicProfiler() |
BasicProfiler(int size) |
Modifier and Type | Method and Description |
---|---|
void |
appStep(AppStep step)
Called at the beginning of the specified AppStep.
|
void |
appSubStep(java.lang.String... additionalInfo)
Called as a substep of the previous AppStep
|
protected void |
createMesh() |
int |
getFrameCount() |
Mesh |
getMesh()
Returns the mesh that contains the bar chart of tracked frame
timings.
|
long |
getUpdateInterval() |
void |
setFrameCount(int size)
Sets the number of frames to display and track.
|
void |
setUpdateInterval(long nanos)
Sets the number of nanoseconds to wait before updating the
mesh.
|
void |
spStep(SpStep step,
java.lang.String... additionalInfo)
Called at the beginning of the specified SpStep (SceneProcessor step).
|
protected void |
updateMesh() |
void |
vpStep(VpStep step,
ViewPort vp,
RenderQueue.Bucket bucket)
Called at the beginning of the specified VpStep during
the rendering of the specified ViewPort.
|
public BasicProfiler()
public BasicProfiler(int size)
public final void setFrameCount(int size)
public int getFrameCount()
public void setUpdateInterval(long nanos)
public long getUpdateInterval()
public Mesh getMesh()
protected final void createMesh()
protected void updateMesh()
public void appStep(AppStep step)
AppProfiler
appStep
in interface AppProfiler
public void appSubStep(java.lang.String... additionalInfo)
AppProfiler
appSubStep
in interface AppProfiler
public void vpStep(VpStep step, ViewPort vp, RenderQueue.Bucket bucket)
AppProfiler
vpStep
in interface AppProfiler
public void spStep(SpStep step, java.lang.String... additionalInfo)
AppProfiler
spStep
in interface AppProfiler