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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcollectQueryInfo(io.ebean.bean.ObjectGraphNode node, long beansLoaded, long micros)Collect query execution summary statistics.voidcollectUsageInfo(io.ebean.bean.NodeUsageCollector profile)Collect the usage information for from a instance for this node.io.ebean.bean.ObjectGraphOrigingetOrigin()Return the origin.StringgetOriginalQuery()booleanisProfile()Return true if this query should be profiled based on a percentage rate.voidprofilingCollection(io.ebeaninternal.server.deploy.BeanDescriptor<?> rootDesc, AutoTuneCollection req, boolean reset)Collect profiling information with the option to reset the underlying profiling detail.voidsetOriginalQuery(String originalQuery)
-
-
-
Constructor Detail
-
ProfileOrigin
public ProfileOrigin(io.ebean.bean.ObjectGraphOrigin origin, boolean queryTuningAddVersion, int profilingBase, double profilingRate)
-
-
Method Detail
-
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 profile)
Collect the usage information for from a instance for this node.
-
-