Interface ProfilingListener
- All Superinterfaces:
io.ebean.bean.NodeUsageListener
public interface ProfilingListener
extends io.ebean.bean.NodeUsageListener
Profiling listener gets call backs for node usage and the associated query executions.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcollectQueryInfo(io.ebean.bean.ObjectGraphNode node, long beans, long micros) Collect summary statistics for a query executed for the given node.booleanisProfileRequest(io.ebean.bean.ObjectGraphNode origin, SpiQuery<?> query) Return true if this request should be profiled (based on the profiling ratio and collection count for this origin).Methods inherited from interface io.ebean.bean.NodeUsageListener
collectNodeUsage
-
Method Details
-
collectQueryInfo
void collectQueryInfo(io.ebean.bean.ObjectGraphNode node, long beans, long micros) Collect summary statistics for a query executed for the given node.- Parameters:
node- the node relative to the origin pointbeans- the number of beans loaded by the querymicros- the query execution in microseconds
-
isProfileRequest
Return true if this request should be profiled (based on the profiling ratio and collection count for this origin).
-