|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmondrian.olap.QueryTiming
public class QueryTiming
Provides hooks for recording timing information of components of Query execution.
NOTE: This class is experimental and subject to change/removal without notice.
Code that executes as part of a Query can call
markStart(String)
before executing, and markEnd(String) afterwards, or can
track execution times manually and call
markFull(String, long).
To read timing information, add a handler to the statement using
Statement.enableProfiling(mondrian.spi.ProfileHandler) and implement the
ProfileHandler.explain(String, QueryTiming) method.
| Constructor Summary | |
|---|---|
QueryTiming()
|
|
| Method Summary | |
|---|---|
void |
done()
|
Collection<String> |
getTimingKeys()
|
List<Long> |
getTimings(String key)
|
void |
init(boolean enabled)
Initializes (or re-initializes) a query timing, also setting whether enabled. |
void |
markEnd(String name)
Marks the end of a Query component's execution. |
void |
markFull(String name,
long duration)
Marks the duration of a Query component's execution. |
void |
markStart(String name)
Marks the start of a Query component's execution. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public QueryTiming()
| Method Detail |
|---|
public void init(boolean enabled)
enabled - Whether to collect stats in futurepublic void done()
public final void markStart(String name)
name - Name of the componentpublic final void markEnd(String name)
name - Name of the component
public final void markFull(String name,
long duration)
name - Name of the componentduration - Duration of the executionpublic String toString()
toString in class Objectpublic Collection<String> getTimingKeys()
public List<Long> getTimings(String key)
key - Name of the Query component to get timing information on
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||