Class TologSpy
java.lang.Object
net.ontopia.topicmaps.query.utils.TologSpy
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidclear()PUBLIC: Clears recorded data.static voidgenerateReport(Writer out) PUBLIC: Produce profiling report.static booleanPUBLIC: Returns true if the profiler is recording query data.static voidrecordExecute(TologQuery query, long start, long end) INTERNAL: Records data about a query.static voidsetIsRecording(boolean recording) PUBLIC: Used to turn recording on and off.
-
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: Produce profiling report.- Throws:
IOException
-
recordExecute
INTERNAL: Records data about a query.
-