org.ogre4j
Interface IProfiler

All Superinterfaces:
IAllocatedObject<IGeneralAllocPolicy>, IGeneralAllocatedObject, INativeObject, ISingleton<IProfiler>
All Known Implementing Classes:
Profiler

public interface IProfiler
extends INativeObject, IGeneralAllocatedObject, ISingleton<IProfiler>


Nested Class Summary
static interface IProfiler.IDisabledProfileMap
           
static interface IProfiler.IProfileBarList
           
static interface IProfiler.IProfileFrame
           
static interface IProfiler.IProfileFrameList
           
static interface IProfiler.IProfileHistory
           
static interface IProfiler.IProfileHistoryList
           
static interface IProfiler.IProfileHistoryMap
           
static interface IProfiler.IProfileInstance
           
static interface IProfiler.IProfileStack
           
 
Method Summary
 void beginProfile(java.lang.String profileName)
          Begins a profile
 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
 boolean getEnabled()
          Gets whether this profiler is enabled
 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 interface org.xbig.base.INativeObject
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Method Detail

setTimer

void setTimer(ITimer t)
Sets the timer for the profiler


getTimer

ITimer getTimer()
Retrieves the timer for the profiler


beginProfile

void beginProfile(java.lang.String profileName)
Begins a profile


endProfile

void endProfile(java.lang.String profileName)
Ends a profile


setEnabled

void setEnabled(boolean enabled)
Sets whether this profiler is enabled. Only takes effect after the the frame has ended.


getEnabled

boolean getEnabled()
Gets whether this profiler is enabled


enableProfile

void enableProfile(java.lang.String profileName)
Enables a previously disabled profile


disableProfile

void disableProfile(java.lang.String profileName)
Disables a profile


watchForMax

boolean watchForMax(java.lang.String profileName)
Returns true if the specified profile reaches a new frame time maximum


watchForMin

boolean watchForMin(java.lang.String profileName)
Returns true if the specified profile reaches a new frame time minimum


watchForLimit

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


logResults

void logResults()
Outputs current profile statistics to the log


reset

void reset()
Clears the profiler statistics


setUpdateDisplayFrequency

void setUpdateDisplayFrequency(long freq)
Sets the so the display of results are updated ever n frames


getUpdateDisplayFrequency

long getUpdateDisplayFrequency()
Gets the frequency that the display is updated



Copyright © 2007 netAllied GmbH. All Rights Reserved.