Package net.ontopia.utils
Class QueryProfiler
- java.lang.Object
-
- net.ontopia.utils.QueryProfiler
-
public class QueryProfiler extends Object
INTERNAL: Statistics collector for profiling queries, whether tolog or SQL.
-
-
Constructor Summary
Constructors Constructor Description QueryProfiler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()voidgenerateReport(String title, Writer out)voidrecordExecute(String ename, long start, long end)voidrecordExecuteUpdate(String ename, int affectedSize, long start, long end)voidrecordTraverse(String ename, boolean hasNext, long start, long end)
-
-
-
Method Detail
-
clear
public void clear()
-
recordExecute
public void recordExecute(String ename, long start, long end)
-
recordExecuteUpdate
public void recordExecuteUpdate(String ename, int affectedSize, long start, long end)
-
recordTraverse
public void recordTraverse(String ename, boolean hasNext, long start, long end)
-
generateReport
public void generateReport(String title, Writer out) throws IOException
- Throws:
IOException
-
-