Class PerformanceQueries
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic float
approxRatio
(long v0, long v1) static String
processInfo
(String processInfoId, String type, String key) Gets the information for a process.static Table
queryOperationPerformance
(long evaluationNumber) Takes in a query evaluation number and returns a view for that query's individual operations's performance data.static TreeTable
Merges the query performance and query operation performance tables into a single tree table.static Table
queryPerformance
(long evaluationNumber) Takes in a query evaluation number and returns a view for that query's performance data.static TreeTable
Converts the query performance table into a tree table.static Table
queryUpdatePerformance
(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 Table
A 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
QueryPerformance
andQueryOperationPerformance
tables, 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
QueryPerformance
andQueryOperationPerformance
tables, 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
QueryPerformance
andQueryOperationPerformance
tables, 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 classUpdateWorst
Same table as above but sorted as to show slower updates (columnRatio
) firstWorstInterval
Show only operations in the slowest update interval in QUPUpdateMostRecent
Show only operations in the last update interval in QUPUpdateAggregate
Summary if update performance data per update intervalUpdateSummaryStats
Percentiles and maximum forRatio
andQueryMemUsed
columns per update interval
You can obtain query evaluation numbers, which uniquely identify a query and its subqueries, via the
QueryPerformance
andQueryOperationPerformance
tables, 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
-