Package tilda.performance
Class PerfTracker
- java.lang.Object
-
- tilda.performance.PerfTracker
-
public abstract class PerfTracker extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PerfTracker()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
add(java.lang.String TableName, StatementType Type, long DurationNano, int Count)
Adds new perf information for the named table.static void
add(java.lang.String TableName, StatementType Type, long DurationNano, int Count, java.lang.String warnings)
Adds new perf information for the named table.static void
add(TransactionType TT, long DurationNano)
Adds new perf information for transactional things such as COMMIT, ROLLBACK, CLOSE, SAVEPOINT...static Info[]
getPerfLogSnapshot()
static void
print(java.io.Writer out)
static void
print(java.lang.StringBuilder Str)
-
-
-
Field Detail
-
LOG
protected static final org.apache.logging.log4j.Logger LOG
-
_M
protected static java.util.Map<java.lang.String,Info> _M
-
-
Method Detail
-
add
public static void add(java.lang.String TableName, StatementType Type, long DurationNano, int Count)
Adds new perf information for the named table.- Parameters:
TableName
-Query
-Type
-DurationNano
-Records
-
-
add
public static void add(java.lang.String TableName, StatementType Type, long DurationNano, int Count, java.lang.String warnings)
Adds new perf information for the named table.- Parameters:
TableName
-Query
-Type
-DurationNano
-Records
-
-
add
public static void add(TransactionType TT, long DurationNano)
Adds new perf information for transactional things such as COMMIT, ROLLBACK, CLOSE, SAVEPOINT...- Parameters:
TT
-DurationNano
-
-
getPerfLogSnapshot
public static Info[] getPerfLogSnapshot()
-
print
public static void print(java.io.Writer out) throws java.lang.Exception
- Throws:
java.lang.Exception
-
print
public static void print(java.lang.StringBuilder Str) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-