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)
size - the desired number of frames (≥0, default=1280)public int getFrameCount()
public void setUpdateInterval(long nanos)
nanos - the desired update interval (in nanoseconds, default=1e6)public long getUpdateInterval()
public Mesh getMesh()
protected final void createMesh()
protected void updateMesh()
public void appStep(AppStep step)
AppProfilerappStep in interface AppProfilerstep - the application-level step that's about to beginpublic void appSubStep(java.lang.String... additionalInfo)
AppProfilerappSubStep in interface AppProfileradditionalInfo - information about the substeppublic void vpStep(VpStep step, ViewPort vp, RenderQueue.Bucket bucket)
AppProfilervpStep in interface AppProfilerstep - the ViewPort-level step that's about to beginvp - which ViewPort is being processedbucket - which Bucket is being processedpublic void spStep(SpStep step, java.lang.String... additionalInfo)
AppProfilerspStep in interface AppProfilerstep - the SceneProcessor step that's about to beginadditionalInfo - information about the SceneProcessor step