java.lang.Object
io.ebeaninternal.server.autotune.service.ProfileOrigin
-
Constructor Summary
ConstructorsConstructorDescriptionProfileOrigin(io.ebean.bean.ObjectGraphOrigin origin, boolean queryTuningAddVersion, int profilingBase, double profilingRate) -
Method Summary
Modifier and TypeMethodDescriptionvoidcollectQueryInfo(io.ebean.bean.ObjectGraphNode node, long beansLoaded, long micros) Collect query execution summary statistics.voidcollectUsageInfo(io.ebean.bean.NodeUsageCollector.State profile) Collect the usage information for from a instance for this node.io.ebean.bean.ObjectGraphOriginReturn the origin.booleanReturn 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 Details
-
ProfileOrigin
public ProfileOrigin(io.ebean.bean.ObjectGraphOrigin origin, boolean queryTuningAddVersion, int profilingBase, double profilingRate)
-
-
Method Details
-
getOriginalQuery
-
setOriginalQuery
-
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.
-