Class PerformanceQueries
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic floatapproxRatio(long v0, long v1) static StringprocessInfo(String processInfoId, String type, String key) Gets the information for a process.static TablequeryOperationPerformance(long evaluationNumber) Takes in a query evaluation number and returns a view for that query's individual operations's performance data.static TreeTableMerges the query performance and query operation performance tables into a single tree table.static TablequeryPerformance(long evaluationNumber) Takes in a query evaluation number and returns a view for that query's performance data.static TreeTableConverts the query performance table into a tree table.static TablequeryUpdatePerformance(long evaluationNumber) Takes in a query evaluation number and returns a view for that query's update performance data.queryUpdatePerformanceMap(long evaluationNumber) Creates multiple tables with performance data for a given query identified by an evaluation number.static TableA user friendly view with basic memory, UGP and GC stats samples for the current engine process, collected on a periodic basis.User friendly table and widgets with basic memory, UGP and GC stats samples for the current engine process, collected on a periodic basis.
-
Constructor Details
-
PerformanceQueries
public PerformanceQueries()
-
-
Method Details
-
queryPerformance
Takes in a query evaluation number and returns a view for that query's performance data.
You can obtain query evaluation numbers, which uniquely identify a query and its subqueries, via the
QueryPerformanceandQueryOperationPerformancetables, callingTableLoggers.queryPerformanceLog()orTableLoggers.queryOperationPerformanceLog().The query performance log contains data on how long each query takes to run. Examples of what constitutes one individual query, for performance logging purposes, include:
- A new command in the console (i.e. type something, then press the return key)
- A sort, filter, or custom column generated by a UI
- A call from a client API external application
- Parameters:
evaluationNumber- evaluation number- Returns:
- query performance table.
-
queryOperationPerformance
Takes in a query evaluation number and returns a view for that query's individual operations's performance data.
You can obtain query evaluation numbers, which uniquely identify a query and its subqueries, via the
QueryPerformanceandQueryOperationPerformancetables, callingTableLoggers.queryPerformanceLog()orTableLoggers.queryOperationPerformanceLog().The query operation performance result contains data on how long each individual operation of a query (where(), update(), naturalJoin(), etc., as well as internal functions) takes to execute, and the change in resource consumption while each was executing.
- Parameters:
evaluationNumber- evaluation number- Returns:
- query operation performance table.
-
queryPerformanceAsTreeTable
Converts the query performance table into a tree table.- Returns:
- query performance tree table.
-
queryOperationPerformanceAsTreeTable
Merges the query performance and query operation performance tables into a single tree table.- Returns:
- query operation performance tree table.
-
processInfo
Gets the information for a process.- Parameters:
processInfoId- idtype- typekey- key- Returns:
- process information
-
queryUpdatePerformance
Takes in a query evaluation number and returns a view for that query's update performance data.
You can obtain query evaluation numbers, which uniquely identify a query and its subqueries, via the
QueryPerformanceandQueryOperationPerformancetables, callingTableLoggers.queryPerformanceLog()orTableLoggers.queryOperationPerformanceLog().- Parameters:
evaluationNumber- evaluation number- Returns:
- query update performance table.
-
queryUpdatePerformanceMap
Creates multiple tables with performance data for a given query identified by an evaluation number. The tables are returned in a map with the following String keys:
QueryUpdatePerformance(QUP) The table created by the method of the same name in this classUpdateWorstSame table as above but sorted as to show slower updates (columnRatio) firstWorstIntervalShow only operations in the slowest update interval in QUPUpdateMostRecentShow only operations in the last update interval in QUPUpdateAggregateSummary if update performance data per update intervalUpdateSummaryStatsPercentiles and maximum forRatioandQueryMemUsedcolumns per update interval
You can obtain query evaluation numbers, which uniquely identify a query and its subqueries, via the
QueryPerformanceandQueryOperationPerformancetables, callingTableLoggers.queryPerformanceLog()orTableLoggers.queryOperationPerformanceLog().- Parameters:
evaluationNumber- evaluation number- Returns:
- map of query update performance tables.
-
approxRatio
public static float approxRatio(long v0, long v1) -
serverState
A user friendly view with basic memory, UGP and GC stats samples for the current engine process, collected on a periodic basis.- Returns:
- a view on ProcessMemoryLog.
-
serverStateWithPlots
User friendly table and widgets with basic memory, UGP and GC stats samples for the current engine process, collected on a periodic basis.- Returns:
- map of table and plots derived from the server state log
-