Class FPSLogger

java.lang.Object
org.graphstream.ui.swing.util.FPSLogger

public class FPSLogger
extends java.lang.Object
Very simple logger for Frame-Per-Second measurements.
  • Constructor Summary

    Constructors 
    Constructor Description
    FPSLogger​(java.lang.String fileName)  
  • Method Summary

    Modifier and Type Method Description
    void beginFrame()
    Start a new frame measurement.
    void close()
    Ensure the log file is flushed and closed.
    void endFrame()  

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FPSLogger

      public FPSLogger​(java.lang.String fileName)
      Parameters:
      fileName - The name of the file where measurements will be written, frame by frame.
  • Method Details

    • beginFrame

      public void beginFrame()
      Start a new frame measurement.
    • endFrame

      public void endFrame()
    • close

      public void close()
      Ensure the log file is flushed and closed. Be careful, calling `endFrame()` after `close()` will reopen the log file and erase prior measurements.