Class ProfileOrigin
- java.lang.Object
-
- io.ebeaninternal.server.autotune.service.ProfileOrigin
-
public class ProfileOrigin extends Object
-
-
Constructor Summary
Constructors Constructor Description ProfileOrigin(ObjectGraphOrigin origin, boolean queryTuningAddVersion, int profilingBase, double profilingRate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
collectQueryInfo(ObjectGraphNode node, long beansLoaded, long micros)
Collect query execution summary statistics.void
collectUsageInfo(NodeUsageCollector profile)
Collect the usage information for from a instance for this node.ObjectGraphOrigin
getOrigin()
Return the origin.String
getOriginalQuery()
boolean
isProfile()
Return true if this query should be profiled based on a percentage rate.void
profilingCollection(BeanDescriptor<?> rootDesc, AutoTuneCollection req, boolean reset)
Collect profiling information with the option to reset the underlying profiling detail.void
setOriginalQuery(String originalQuery)
-
-
-
Constructor Detail
-
ProfileOrigin
public ProfileOrigin(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(BeanDescriptor<?> rootDesc, AutoTuneCollection req, boolean reset)
Collect profiling information with the option to reset the underlying profiling detail.
-
getOrigin
public ObjectGraphOrigin getOrigin()
Return the origin.
-
collectQueryInfo
public void collectQueryInfo(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(NodeUsageCollector profile)
Collect the usage information for from a instance for this node.
-
-