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 Type
    Method
    Description
    void
    collectQueryInfo(io.ebean.bean.ObjectGraphNode node, long beans, long micros)
    Collect summary statistics for a query executed for the given node.
    boolean
    isProfileRequest(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 point
      beans - the number of beans loaded by the query
      micros - the query execution in microseconds
    • isProfileRequest

      boolean isProfileRequest(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).