getCpuLoadStats()
getCpuLoadStats()
Returns a Promise that resolves with an object of CPU stats:
The latest field is a collection of statistics from the most recent time period. These statistics are updated approximately once every two seconds. You can poll the getCpuLoadStats() method to continually read the current CPU performance.
The getCpuLoadStats method applies to video calls only.
cpuLoadStateis an assessment of the current CPU state, which can be eitherhighorlow.cpuLoadStateReasoncan have values of:nonewhen thecpuLoadStateislow.encodewhen thecpuLoadStateishighand video encoding is the primary cause for the high CPU load.decodewhen thecpuLoadStateishighand video decoding is the primary cause for the high CPU load.scheduleDurationwhen thecpuLoadStateishighand specific functions in the Daily code are not completing within a specified interval.