|
||||||||
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
Indicates the dependencies of the expression |
static int |
ITEM_COUNT
Just returns the number of items in the sequence |
static int |
OPTIMIZATION_FLAGS
For computations that will trigger further optimizations |
static int |
OPTIMIZATIONS
value for Verbosity property: For optimizations |
static int |
SEQUENCE_DUMP
For a full representation of the context sequence (TODO) |
static int |
SEQUENCE_PREVIEW
For a truncated string representation of the context sequence (TODO) |
static int |
START_SEQUENCES
An abstract level for viewing the expression's context sequence/item |
static int |
TIME
value for Verbosity property: basic profiling : just elapsed time |
Constructor Summary | |
Profiler()
|
Method Summary | |
void |
configure(Option 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 |
equals, 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(Option 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)
level
- title
- 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 |