Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-01

oracle.ide.performance
Class PerformanceLogRecord

java.lang.Object
  extended by java.util.logging.LogRecord
      extended by oracle.ide.performance.PerformanceLogRecord
All Implemented Interfaces:
java.io.Serializable

public final class PerformanceLogRecord
extends java.util.logging.LogRecord

A record logged by the performance logger. As well as a message, a record in the performance logger also has an elapsed time, obtainable via getElapsedTime() and a depth, obtainable via getDepth(). The depth is a number representing the number of nested calls to PerformanceLogger.log(Level,String,long) this record was logged at. This may be used by a formatter to indent the timing information.

This class is provided so that custom formatters can obtain the extra information stored in performance log records.

Since:
10.1.3
See Also:
Serialized Form

Method Summary
 int getDepth()
          Get the depth of nested calls to PerformanceLogger.log(Level,String,long) this record was logged at.
 long getElapsedTime()
          Get the elapsed time stored with this performance log record.
 java.lang.String getId()
           
 
Methods inherited from class java.util.logging.LogRecord
getLevel, getLoggerName, getMessage, getMillis, getParameters, getResourceBundle, getResourceBundleName, getSequenceNumber, getSourceClassName, getSourceMethodName, getThreadID, getThrown, setLevel, setLoggerName, setMessage, setMillis, setParameters, setResourceBundle, setResourceBundleName, setSequenceNumber, setSourceClassName, setSourceMethodName, setThreadID, setThrown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getId

public java.lang.String getId()

getElapsedTime

public long getElapsedTime()
Get the elapsed time stored with this performance log record.

Returns:
an elapsed time for this record in nanoseconds. This may be zero.

getDepth

public int getDepth()
Get the depth of nested calls to PerformanceLogger.log(Level,String,long) this record was logged at.

Returns:
the depth of log calls.

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-01

Copyright © 1997, 2011, Oracle. All rights reserved.