Class MemoryUtilities

Object
MemoryUtilities

public class MemoryUtilities extends Object
Logs a message about approximate memory (RAM) usage of the JVM.
Author:
Owen Feehan
  • Method Details

    • logMemoryUsage

      public static void logMemoryUsage(String identifier, MessageLogger logger)
      Logs a message to logger describing current memory usage of the JVM.
      Parameters:
      identifier - a human-readable string identifying the timepoint in the execution of the program where memory is recorded.
      logger - the logger to record the message onto