Interface ProfilingListener

All Superinterfaces:
NodeUsageListener

public interface ProfilingListener extends NodeUsageListener
Profiling listener gets call backs for node usage and the associated query executions.
  • Method Details

    • 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 point
      beans - the number of beans loaded by the query
      micros - 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).