public class GcQueryReport
extends java.lang.Object
Constructor and Description |
---|
GcQueryReport() |
Modifier and Type | Method and Description |
---|---|
void |
addExecutionTime(long millis)
Add an execution time.
|
java.lang.Long |
getCumulativeTimeMillis()
Total time spent, will include any nested queries and code.
|
int |
getNumberOfExecutions()
How many times the query was executed.
|
java.lang.String |
getQuery()
Query that was executed.
|
static void |
reportToFile(java.lang.String fileLocation,
java.util.Map<java.lang.String,GcQueryReport> queryReports)
Write out a csv report to the given file path.
|
void |
setCumulativeTime(java.lang.Long _cumulativeTimeMillis)
Total time spent, will include any nested queries and code.
|
void |
setNumberOfExecutions(int _numberOfExecutions)
How many times the query was executed.
|
void |
setQuery(java.lang.String _query)
Query that was executed.
|
public static void reportToFile(java.lang.String fileLocation, java.util.Map<java.lang.String,GcQueryReport> queryReports)
fileLocation
- is the loaction of the file to write.queryReports
- is the map of reports.public void addExecutionTime(long millis)
millis
- is the millis to add.public java.lang.String getQuery()
public void setQuery(java.lang.String _query)
_query
- the query to setpublic java.lang.Long getCumulativeTimeMillis()
public void setCumulativeTime(java.lang.Long _cumulativeTimeMillis)
_cumulativeTimeMillis
- the cumulativeTime to setpublic int getNumberOfExecutions()
public void setNumberOfExecutions(int _numberOfExecutions)
_numberOfExecutions
- the numberOfExecutions to set