Class MemoryTracker

java.lang.Object
ActiverseEngine.MemoryTracker

public class MemoryTracker extends Object
MemoryTracker class is used to track memory usage of the game along with other statistics
Version:
1.3.2
Author:
Knivier
  • 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:
      • writeMemoryUsageToFile()
    • getMemoryUsagePerSecond

      public String getMemoryUsagePerSecond()
      Returns the memory usage per second in a formatted string.
      Returns:
      String