Class TologSpy

java.lang.Object
net.ontopia.topicmaps.query.utils.TologSpy

public class TologSpy extends Object
PUBLIC: Query profiler for tolog. Note that it must be turned on by a call to setIsRecording() in order to start recording data.
Since:
5.0.0
  • Constructor Details

    • TologSpy

      public TologSpy()
  • Method Details

    • getIsRecording

      public static boolean getIsRecording()
      PUBLIC: Returns true if the profiler is recording query data.
    • setIsRecording

      public static void setIsRecording(boolean recording)
      PUBLIC: Used to turn recording on and off.
    • clear

      public static void clear()
      PUBLIC: Clears recorded data.
    • generateReport

      public static void generateReport(Writer out) throws IOException
      PUBLIC: Produce profiling report.
      Throws:
      IOException
    • recordExecute

      public static void recordExecute(TologQuery query, long start, long end)
      INTERNAL: Records data about a query.