Package zombie
Class GameProfiler
java.lang.Object
zombie.GameProfiler
public class GameProfiler
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
GameProfiler.ProfileArea
-
Field Summary
Fields Modifier and Type Field Description java.util.HashMap
Areas
static GameProfiler
instance
long
StartTime
-
Constructor Summary
Constructors Constructor Description GameProfiler()
-
Method Summary
Modifier and Type Method Description void
End(java.lang.String area)
void
render(int x, int y)
void
RenderPercent(java.lang.String label, java.lang.Long time, int x, int y, float r, float g, float b)
void
RenderTime(java.lang.String label, java.lang.Long time, int x, int y, float r, float g, float b)
void
Start(java.lang.String area)
void
Start(java.lang.String area, float r, float g, float b)
void
StartFrame()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
instance
-
StartTime
public long StartTime -
Areas
public java.util.HashMap Areas
-
-
Constructor Details
-
GameProfiler
public GameProfiler()
-
-
Method Details
-
StartFrame
public void StartFrame() -
Start
public void Start(java.lang.String area) -
Start
public void Start(java.lang.String area, float r, float g, float b) -
End
public void End(java.lang.String area) -
RenderTime
public void RenderTime(java.lang.String label, java.lang.Long time, int x, int y, float r, float g, float b) -
RenderPercent
public void RenderPercent(java.lang.String label, java.lang.Long time, int x, int y, float r, float g, float b) -
render
public void render(int x, int y)
-