public interface JCGLProfilingContextType
| Modifier and Type | Method and Description |
|---|---|
JCGLProfilingContextType |
childContext(String name)
Create or return an existing child context with the given name.
|
String |
contextName() |
boolean |
hasTimer() |
boolean |
isEnabled() |
default void |
startMeasuringIfEnabled()
Start measuring the time if profiling is enabled.
|
default void |
stopMeasuringIfEnabled()
Stop measuring the time if profiling is enabled.
|
JCGLTimerQueryUsableType |
timer()
Create a new timer, or return the existing timer if this method has already
been called previously on this context.
|
JCGLTimersType |
timers() |
String contextName()
JCGLProfilingFrameType.childContext(String),
childContext(String)JCGLTimerQueryUsableType timer()
JCGLProfilingContextType childContext(String name)
name - The name of the child contextboolean isEnabled()
true iff profiling is enabledJCGLProfilingType.setEnabled(boolean),
JCGLProfilingType.isEnabled()JCGLTimersType timers()
boolean hasTimer()
true iff timer() has ever been called for this
contextdefault void startMeasuringIfEnabled()
default void stopMeasuringIfEnabled()
Copyright © 2017 <code@io7m.com> http://io7m.com