|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.Profiler
public class Profiler
| Nested Class Summary | |
|---|---|
protected static class |
Profiler.DisabledProfileMap
|
protected static class |
Profiler.ProfileBarList
|
protected static class |
Profiler.ProfileFrame
|
protected static class |
Profiler.ProfileFrameList
|
protected static class |
Profiler.ProfileHistory
|
protected static class |
Profiler.ProfileHistoryList
|
protected static class |
Profiler.ProfileHistoryMap
|
protected static class |
Profiler.ProfileInstance
|
protected static class |
Profiler.ProfileStack
|
| Nested classes/interfaces inherited from interface org.ogre4j.IProfiler |
|---|
IProfiler.IDisabledProfileMap, IProfiler.IProfileBarList, IProfiler.IProfileFrame, IProfiler.IProfileFrameList, IProfiler.IProfileHistory, IProfiler.IProfileHistoryList, IProfiler.IProfileHistoryMap, IProfiler.IProfileInstance, IProfiler.IProfileStack |
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
Profiler()
|
|
Profiler(InstancePointer p)
This constructor is public for internal useage only! |
protected |
Profiler(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
Profiler(WithoutNativeObject val)
Allows creation of Java objects without C++ objects. |
| Method Summary | |
|---|---|
void |
beginProfile(java.lang.String profileName)
Begins a profile |
void |
delete()
Deletes the corresponding C++ object. |
void |
disableProfile(java.lang.String profileName)
Disables a profile |
void |
enableProfile(java.lang.String profileName)
Enables a previously disabled profile |
void |
endProfile(java.lang.String profileName)
Ends a profile |
void |
finalize()
|
boolean |
getEnabled()
Gets whether this profiler is enabled |
static IProfiler |
getSingleton()
Override standard retrieval. |
static IProfiler |
getSingletonPtr()
Override standard retrieval. |
ITimer |
getTimer()
Retrieves the timer for the profiler |
long |
getUpdateDisplayFrequency()
Gets the frequency that the display is updated |
void |
logResults()
Outputs current profile statistics to the log |
void |
reset()
Clears the profiler statistics |
void |
setEnabled(boolean enabled)
Sets whether this profiler is enabled. |
void |
setTimer(ITimer t)
Sets the timer for the profiler |
void |
setUpdateDisplayFrequency(long freq)
Sets the so the display of results are updated ever n frames |
boolean |
watchForLimit(java.lang.String profileName,
float limit,
boolean greaterThan)
Returns true if the specified profile goes over or under the given limit frame time |
boolean |
watchForMax(java.lang.String profileName)
Returns true if the specified profile reaches a new frame time maximum |
boolean |
watchForMin(java.lang.String profileName)
Returns true if the specified profile reaches a new frame time minimum |
| Methods inherited from class org.xbig.base.NativeObject |
|---|
disconnectFromNativeObject, equals, getInstancePointer, hashCode, setInstancePointer, setInstancePointer, setInstancePointer, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.xbig.base.INativeObject |
|---|
disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer |
| Constructor Detail |
|---|
public Profiler(InstancePointer p)
protected Profiler(InstancePointer p,
boolean remote)
public Profiler(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()public Profiler()
| Method Detail |
|---|
public void delete()
INativeObjectSubclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!
delete in interface INativeObjectdelete in class NativeObject#remotepublic void finalize()
finalize in class NativeObjectpublic void setTimer(ITimer t)
setTimer in interface IProfilerpublic ITimer getTimer()
getTimer in interface IProfilerpublic void beginProfile(java.lang.String profileName)
beginProfile in interface IProfilerpublic void endProfile(java.lang.String profileName)
endProfile in interface IProfilerpublic void setEnabled(boolean enabled)
setEnabled in interface IProfilerpublic boolean getEnabled()
getEnabled in interface IProfilerpublic void enableProfile(java.lang.String profileName)
enableProfile in interface IProfilerpublic void disableProfile(java.lang.String profileName)
disableProfile in interface IProfilerpublic boolean watchForMax(java.lang.String profileName)
watchForMax in interface IProfilerpublic boolean watchForMin(java.lang.String profileName)
watchForMin in interface IProfiler
public boolean watchForLimit(java.lang.String profileName,
float limit,
boolean greaterThan)
watchForLimit in interface IProfilerpublic void logResults()
logResults in interface IProfilerpublic void reset()
reset in interface IProfilerpublic void setUpdateDisplayFrequency(long freq)
setUpdateDisplayFrequency in interface IProfilerpublic long getUpdateDisplayFrequency()
getUpdateDisplayFrequency in interface IProfilerpublic static IProfiler getSingleton()
public static IProfiler getSingletonPtr()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||