Class ProfileOrigin

    • Constructor Detail

      • ProfileOrigin

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

      • 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 profile)
        Collect the usage information for from a instance for this node.