getCpuLoadStats()
getCpuLoadStats()
Compatibility:
Prebuilt
Custom
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.
cpuLoadState
is an assessment of the current CPU state, which can be eitherhigh
orlow
.cpuLoadStateReason
can have values of:none
when thecpuLoadState
islow
.encode
when thecpuLoadState
ishigh
and video encoding is the primary cause for the high CPU load.decode
when thecpuLoadState
ishigh
and video decoding is the primary cause for the high CPU load.scheduleDuration
when thecpuLoadState
ishigh
and specific functions in the Daily code are not completing within a specified interval.