|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exist.xquery.Profiler
XQuery profiling output. Profiling information is written to a logger. The profiler can be enabled/disabled and configured via an XQuery pragma or "declare option" expression. Example:
declare option exist:profiling "enabled=yes verbosity=10 logger=profiler";
| Field Summary | |
static int |
DEPENDENCIES
|
static int |
ITEM_COUNT
|
static int |
OPTIMIZATION_FLAGS
|
static int |
OPTIMIZATIONS
|
static int |
SEQUENCE_DUMP
|
static int |
SEQUENCE_PREVIEW
|
static int |
START_SEQUENCES
|
static int |
TIME
|
| Constructor Summary | |
Profiler()
|
|
| Method Summary | |
void |
configure(Pragma pragma)
Configure the profiler from an XQuery pragma. |
void |
end(Expression expr,
java.lang.String message,
Sequence result)
Called by an expression to indicate the end of an operation. |
boolean |
isEnabled()
Is profiling enabled? |
void |
message(Expression expr,
int level,
java.lang.String title,
Sequence sequence)
Print out a single profiling message for the given expression object. |
void |
message(Expression expr,
int level,
java.lang.String title,
java.lang.String message)
|
void |
reset()
|
void |
setEnabled(boolean enabled)
|
void |
setVerbosity(int verbosity)
|
void |
start(Expression expr)
Called by an expression to indicate the start of an operation. |
void |
start(Expression expr,
java.lang.String message)
Called by an expression to indicate the start of an operation. |
int |
verbosity()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static int TIME
public static int OPTIMIZATIONS
public static int OPTIMIZATION_FLAGS
public static int DEPENDENCIES
public static int START_SEQUENCES
public static int ITEM_COUNT
public static int SEQUENCE_PREVIEW
public static int SEQUENCE_DUMP
| Constructor Detail |
public Profiler()
| Method Detail |
public final void configure(Pragma pragma)
pragma - public final boolean isEnabled()
public final int verbosity()
public final void start(Expression expr)
expr - the expression.
public final void start(Expression expr,
java.lang.String message)
expr - the expression.message - if not null, contains an optional message to print in the log.
public final void end(Expression expr,
java.lang.String message,
Sequence result)
expr - the expression.message - required: a message to be printed to the log.
public final void message(Expression expr,
int level,
java.lang.String title,
Sequence sequence)
expr -
public final void message(Expression expr,
int level,
java.lang.String title,
java.lang.String message)
public void reset()
public void setEnabled(boolean enabled)
public void setVerbosity(int verbosity)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||