Hyperon Runtime gives you built-in profilers, which you can use to figure out hot spots or verify your assumptions. You are able to use 4 types of profiles:
JdbcProfiler is responsible for collecting SQL query statistics. It provides the following details:
JDBC query statistics in Hyperon Runtime can be fetched by using the pl.decerto.hyperon.runtime.profiler.jdbc.JdbcProfiler class. To get statistics just invoke getQueryStats() method, as shown below:
To reset load stats, invoke clear() method as shown below:
To see all JDBC query statistics in Hyperon Runtime-REST, go to https://<your_hyperon_runtime_rest_url>/api/profiler/jdbc.
SQL profiler is available also in Hyperon Studio. To see all statistics, go to https://<your_hyperon_studio_url>/profiler
For example:
if Hyperon Studio is available via url: https://hyperon_demo.com/hyperon/app ,
profiler's page is available via url https://hyperon_demo.com/hyperon/profiler .
To log into profiler's page use Hyperon Studio credentials.
Statistics shown in Hyperon Studio profiler are not your application statistics! These are statistics from Hyperon Studio, for example from Hyperon Tester invocations.
Parameter profiler provides invoke and load statistics:
Remember that the first invocation of a parameter performs 2 heavy operations:
All subsequent invocations are fast, as no I/O is needed - just in-memory index lookup.
Parameter profiler in Hyperon Runtime can be fetched by using the pl.decerto.hyperon.runtime.profiler.engine.EngineProfiler.PARAMETER enum. To get invoke statistics just invoke getInvokeStats() method, as shown below:
To reset invoke stats, invoke clear() method as shown below:
To get load statistics just invoke getLoadStats() method, as shown below:
To reset load stats, invoke clear() method as shown below:
To see all parameter statistics in Hyperon Runtime-REST, go to https://<your_hyperon_runtime_rest_url>/api/profiler/parameter.
To see all statistics, go to https://<your_hyperon_studio_url>/profiler .
For example:
if Hyperon Studio is available via url: https://hyperon_demo.com/hyperon/app
profiler's page is available via url https://hyperon_demo.com/hyperon/profiler
To log into profiler's page use Hyperon Studio credentials.
Statistics shown in Hyperon Studio profiler are not your application statistics! These are stats from Hyperon Studio, for example from Hyperon Tester invocations.
Function profiler provides invoke and load statistics:
Remember that the first invocation of function performs function compiling that might take some time. All subsequent invocations are fast, as no compilation is needed.
Function profiler in Hyperon Runtime can be fetched by using the pl.decerto.hyperon.runtime.profiler.engine.EngineProfiler.FUNCTION enum. To get invoke statistics just invoke getInvokeStats() method, as shown below:
To reset invoke stats, invoke clear() method as shown below:
To get load statistics just invoke getLoadStats() method, as shown below:
To reset load stats, invoke clear() method as shown below:
To see all function statistics in Hyperon Runtime-REST, go to https://<your_hyperon_runtime_rest_url>/api/profiler/function.
To see all statistics, go to https://<your_hyperon_studio_url>/profiler
For example,
if Hyperon Studio is available via url: https://hyperon_demo.com/hyperon/app
profiler's page is available via url https://hyperon_demo.com/hyperon/profiler
To log into profiler's page use Hyperon Studio credentials.
Statistics shown in Hyperon Studio profiler are not your application statistics! These are stats from Hyperon Studio, for example from Hyperon Tester invocations.
Domain attribute profiler provides invoke and load statistics:
Domain attribute profiler in Hyperon Runtime can be fetched by using the pl.decerto.hyperon.runtime.profiler.engine.AttributeEngineProfiler.DOMAIN enum. To get invoke statistics just invoke getInvokeStats() method, as shown below:
To reset invoke stats, invoke clear() method as shown below:
To get load statistics just invoke getLoadStats() method, as shown below:
To reset load stats, invoke clear() method as shown below:
To see all domain attribute statistics in Hyperon Runtime-REST, go to https://<your_hyperon_runtime_rest_url>/api/profiler/domain/attr.
To see all statistics, go to https://<your_hyperon_studio_url>/profiler
For example,
if Hyperon Studio is available via url: https://hyperon_demo.com/hyperon/app
profiler's page is available via url https://hyperon_demo.com/hyperon/profiler
To log into profiler's page use Hyperon Studio credentials.
Statistics shown in Hyperon Studio profiler are not your application statistics! These are stats from Hyperon Studio, for example from Hyperon Tester invocations.