Class PerfTracker


  • public abstract class PerfTracker
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.util.Map<java.lang.String,​Info> _M  
      protected static org.apache.logging.log4j.Logger LOG  
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LOG

        protected static final org.apache.logging.log4j.Logger LOG
      • _M

        protected static java.util.Map<java.lang.String,​Info> _M
    • Constructor Detail

      • PerfTracker

        public PerfTracker()
    • 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