Class MemoryTracker
java.lang.Object
ActiverseEngine.MemoryTracker
MemoryTracker class is used to track memory usage of the game along with other statistics
- Version:
- 1.3.2
- Author:
- Knivier
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the memory usage per second in a formatted string.int
Returns FPS targetvoid
update()
Updates the memory usage statistics and writes them to a file if logging is enabled.
-
Constructor Details
-
MemoryTracker
public MemoryTracker()Constructor for MemoryTracker class
-
-
Method Details
-
getTargetFPS
public int getTargetFPS()Returns FPS target- Returns:
- int FPStarget
-
update
public void update()Updates the memory usage statistics and writes them to a file if logging is enabled.- See Also:
-
getMemoryUsagePerSecond
Returns the memory usage per second in a formatted string.- Returns:
- String
-