public class Statistics extends Object implements Serializable
| Constructor and Description |
|---|
Statistics(ObjectGraphOrigin origin,
boolean queryTuningAddVersion) |
| Modifier and Type | Method and Description |
|---|---|
OrmQueryDetail |
buildTunedFetch(BeanDescriptor<?> rootDesc) |
void |
collectQueryInfo(ObjectGraphNode node,
long beansLoaded,
long micros) |
void |
collectUsageInfo(NodeUsageCollector profile)
Collect the usage information for from a instance for this node.
|
TunedQueryInfo |
createTunedFetch(OrmQueryDetail newFetchDetail) |
int |
getCounter()
Return the number of times the root query has executed.
|
ObjectGraphOrigin |
getOrigin() |
String |
getQueryStatDebug() |
String |
getUsageDebug() |
boolean |
hasUsage()
Return true if this has usage statistics.
|
String |
toString() |
public Statistics(ObjectGraphOrigin origin, boolean queryTuningAddVersion)
public ObjectGraphOrigin getOrigin()
public TunedQueryInfo createTunedFetch(OrmQueryDetail newFetchDetail)
public int getCounter()
This tells us how much profiling we have done for this query. For example, after 100 times we may stop collecting more profiling info.
public boolean hasUsage()
public OrmQueryDetail buildTunedFetch(BeanDescriptor<?> rootDesc)
public void collectQueryInfo(ObjectGraphNode node, long beansLoaded, long micros)
public void collectUsageInfo(NodeUsageCollector profile)
public String getUsageDebug()
public String getQueryStatDebug()
Copyright © 2014. All Rights Reserved.