|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hive.ql.log.PerfLogger
public class PerfLogger
PerfLogger. Can be used to measure and log the time spent by a piece of code.
Field Summary | |
---|---|
static String |
ACQUIRE_READ_WRITE_LOCKS
|
static String |
COMPILE
|
static String |
DO_AUTHORIZATION
|
static String |
DRIVER_EXECUTE
|
static String |
DRIVER_RUN
|
protected Map<String,Long> |
endTimes
|
static String |
FAILURE_HOOK
|
static String |
PARTITION_RETRIEVING
|
protected static ThreadLocal<PerfLogger> |
perfLogger
|
static String |
POST_HOOK
|
static String |
PRE_HOOK
|
static String |
PRUNE_LISTING
|
static String |
RELEASE_LOCKS
|
protected Map<String,Long> |
startTimes
|
static String |
TIME_TO_SUBMIT
|
Constructor Summary | |
---|---|
protected |
PerfLogger()
|
Method Summary | |
---|---|
void |
close(org.apache.commons.logging.Log _log,
QueryPlan queryPlan)
Call this function at the end of processing a query (any time after the last call to PerfLogEnd for a given query) to run any cleanup/final steps that need to be run |
Long |
getEndTime(String method)
|
static PerfLogger |
getPerfLogger()
|
static PerfLogger |
getPerfLogger(boolean resetPerfLogger)
Call this function to get an instance of PerfLogger. |
Long |
getStartTime(String method)
|
void |
PerfLogBegin(org.apache.commons.logging.Log _log,
String method)
Call this function when you start to measure time spent by a piece of code. |
long |
PerfLogEnd(org.apache.commons.logging.Log _log,
String method)
Call this function in correspondence of PerfLogBegin to mark the end of the measurement. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ACQUIRE_READ_WRITE_LOCKS
public static final String COMPILE
public static final String DO_AUTHORIZATION
public static final String DRIVER_EXECUTE
public static final String RELEASE_LOCKS
public static final String PRUNE_LISTING
public static final String PARTITION_RETRIEVING
public static final String PRE_HOOK
public static final String POST_HOOK
public static final String FAILURE_HOOK
public static final String DRIVER_RUN
public static final String TIME_TO_SUBMIT
protected static final ThreadLocal<PerfLogger> perfLogger
protected final Map<String,Long> startTimes
protected final Map<String,Long> endTimes
Constructor Detail |
---|
protected PerfLogger()
Method Detail |
---|
public static PerfLogger getPerfLogger()
public static PerfLogger getPerfLogger(boolean resetPerfLogger)
public void PerfLogBegin(org.apache.commons.logging.Log _log, String method)
_log
- the logging object to be used.method
- method or ID that identifies this perf log element.public long PerfLogEnd(org.apache.commons.logging.Log _log, String method)
_log
- method
-
public void close(org.apache.commons.logging.Log _log, QueryPlan queryPlan)
_log
- public Long getStartTime(String method)
public Long getEndTime(String method)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |