|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.endeca.portal.instrumentation.Profiler
public class Profiler
The Profiler class encapsulates and provides a central point for other classes to hook into performance instrumentation for recording datapoints
Method Summary | |
---|---|
static long |
end(ProfilerType type,
RequestTracker requestTracker,
javax.portlet.GenericPortlet portlet,
javax.portlet.PortletMode mode,
javax.portlet.WindowState windowState,
long startTime)
Convenience method for recording portlet executions only. |
static long |
end(ProfilerType type,
RequestTracker requestTracker,
java.lang.String dataSourceName,
com.endeca.navigation.ENEQuery query,
com.endeca.navigation.ENEQueryResults results,
long startTime)
Method to record MDEX queries, whether cached or uncached. |
static long |
end(ProfilerType type,
RequestTracker requestTracker,
java.lang.String dataSourceName,
com.endeca.mdex.conversation.Request query,
com.endeca.mdex.conversation.Results results,
long startTime)
Method to record discovery service queries, whether cached or uncached. |
static long |
start()
Call this method just before the code you want to profile. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static long start()
public static long end(ProfilerType type, RequestTracker requestTracker, javax.portlet.GenericPortlet portlet, javax.portlet.PortletMode mode, javax.portlet.WindowState windowState, long startTime)
type
- the only valid value is ProfilerType.PORTLET_EXECUTIONportlet
- the portlet being profiledmode
- the mode of the portlet execution being profiledstartTime
- the time, in ms, that the profiling started
public static long end(ProfilerType type, RequestTracker requestTracker, java.lang.String dataSourceName, com.endeca.navigation.ENEQuery query, com.endeca.navigation.ENEQueryResults results, long startTime)
type
- valid values are ProfilerType.MDEX_QUERY_ENGINE and ProfilerType.MDEX_QUERY_CACHEDdataSourceName
- the datasource for the query being profiledquery
- the query sent to the MDEXresults
- the results from the MDEXstartTime
- the time, in ms, that the profiling started
public static long end(ProfilerType type, RequestTracker requestTracker, java.lang.String dataSourceName, com.endeca.mdex.conversation.Request query, com.endeca.mdex.conversation.Results results, long startTime)
type
- valid values are ProfilerType.MDEX_QUERY_ENGINE and ProfilerType.MDEX_QUERY_CACHEDdataSourceName
- the datasource for the query being profiledquery
- the query sent to the MDEXresults
- the results from the MDEXstartTime
- the time, in ms, that the profiling started
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |