Class ProfileOrigin

java.lang.Object
io.ebeaninternal.server.autotune.service.ProfileOrigin

public class ProfileOrigin extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    ProfileOrigin(io.ebean.bean.ObjectGraphOrigin origin, boolean queryTuningAddVersion, int profilingBase, double profilingRate)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    collectQueryInfo(io.ebean.bean.ObjectGraphNode node, long beansLoaded, long micros)
    Collect query execution summary statistics.
    void
    collectUsageInfo(io.ebean.bean.NodeUsageCollector.State profile)
    Collect the usage information for from a instance for this node.
    io.ebean.bean.ObjectGraphOrigin
    Return the origin.
     
    boolean
    Return true if this query should be profiled based on a percentage rate.
    void
    profilingCollection(io.ebeaninternal.server.deploy.BeanDescriptor<?> rootDesc, AutoTuneCollection req, boolean reset)
    Collect profiling information with the option to reset the underlying profiling detail.
    void
    setOriginalQuery(String originalQuery)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ProfileOrigin

      public ProfileOrigin(io.ebean.bean.ObjectGraphOrigin origin, boolean queryTuningAddVersion, int profilingBase, double profilingRate)
  • Method Details

    • getOriginalQuery

      public String getOriginalQuery()
    • setOriginalQuery

      public void setOriginalQuery(String originalQuery)
    • isProfile

      public boolean isProfile()
      Return true if this query should be profiled based on a percentage rate.
    • profilingCollection

      public void profilingCollection(io.ebeaninternal.server.deploy.BeanDescriptor<?> rootDesc, AutoTuneCollection req, boolean reset)
      Collect profiling information with the option to reset the underlying profiling detail.
    • getOrigin

      public io.ebean.bean.ObjectGraphOrigin getOrigin()
      Return the origin.
    • collectQueryInfo

      public void collectQueryInfo(io.ebean.bean.ObjectGraphNode node, long beansLoaded, long micros)
      Collect query execution summary statistics.

      This can give us a quick overview into bad lazy loading areas etc.

    • collectUsageInfo

      public void collectUsageInfo(io.ebean.bean.NodeUsageCollector.State profile)
      Collect the usage information for from a instance for this node.