public class DefaultAndroidProfiler
extends java.lang.Object
implements com.jme3.profile.AppProfiler
This profiler uses the Android Trace class which is only supported on Android SDK rev 18 and higher (ver 4.3 and higher). If the device is running a version < rev 18, the logging will be skipped.
In the MainActivity class, add the following:
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
app.setAppProfiler(new DefaultAndroidProfiler());
}
Start the Android systrace utility and run the application to
see the detailed timings of the application.| Constructor and Description |
|---|
DefaultAndroidProfiler() |
| Modifier and Type | Method and Description |
|---|---|
void |
appStep(com.jme3.profile.AppStep appStep) |
void |
spStep(com.jme3.profile.SpStep step,
java.lang.String... additionalInfo) |
void |
vpStep(com.jme3.profile.VpStep vpStep,
com.jme3.renderer.ViewPort vp,
com.jme3.renderer.queue.RenderQueue.Bucket bucket) |
public void appStep(com.jme3.profile.AppStep appStep)
appStep in interface com.jme3.profile.AppProfilerpublic void vpStep(com.jme3.profile.VpStep vpStep,
com.jme3.renderer.ViewPort vp,
com.jme3.renderer.queue.RenderQueue.Bucket bucket)
vpStep in interface com.jme3.profile.AppProfilerpublic void spStep(com.jme3.profile.SpStep step,
java.lang.String... additionalInfo)
spStep in interface com.jme3.profile.AppProfiler