Package io.ebeaninternal.server.autotune
Interface ProfilingListener
-
- All Superinterfaces:
NodeUsageListener
- All Known Implementing Classes:
ProfileManager
public interface ProfilingListener extends NodeUsageListener
Profiling listener gets call backs for node usage and the associated query executions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
collectQueryInfo(ObjectGraphNode node, long beans, long micros)
Collect summary statistics for a query executed for the given node.boolean
isProfileRequest(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 Detail
-
collectQueryInfo
void collectQueryInfo(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
boolean isProfileRequest(ObjectGraphNode origin, SpiQuery<?> query)
Return true if this request should be profiled (based on the profiling ratio and collection count for this origin).
-
-