C
PerformanceMetrics Struct
struct Qul::Platform::PerformanceMetricsProvides performance metrics. More...
Header: | #include <platform/performancemetrics.h> |
Since: | Qt Quick Ultralite (Platform) 2.6 |
Public Functions
virtual float | cpuLoad() |
virtual uint64_t | maxHeapUsage() |
virtual uint64_t | maxStackUsage() |
Detailed Description
PerformanceMetrics provides functions to access platform-provided performance data.
Member Function Documentation
[virtual, since Qt Quick Ultralite (Platform) 2.6]
float PerformanceMetrics::cpuLoad()
Returns the current CPU load. The value is the percentage of active execution time between two calls to this function. The first call returns the CPU load since startup.
Note: Default implementation returns 0.
This function was introduced in Qt Quick Ultralite (Platform) 2.6.
[virtual, since Qt Quick Ultralite (Platform) 2.6]
uint64_t PerformanceMetrics::maxHeapUsage()
Returns the maximum number of bytes allocated from the heap memory.
Note: Default implementation returns 0.
This function was introduced in Qt Quick Ultralite (Platform) 2.6.
[virtual, since Qt Quick Ultralite (Platform) 2.6]
uint64_t PerformanceMetrics::maxStackUsage()
Returns the maximum number of bytes allocated from the stack.
Note: Default implementation returns 0.
This function was introduced in Qt Quick Ultralite (Platform) 2.6.
Available under certain Qt licenses.
Find out more.