getCpuLoadStats()
Prebuilt
Custom
Returns a snapshot of the current CPU load state and video encode/decode statistics. Stats in the latest field are updated approximately every two seconds — poll this method to monitor CPU performance over time.
Return value
Returns aPromise<DailyCpuLoadStats>:
Reason for the current state:
'none'— load is low'encode'— video encoding is the primary cause of high load'decode'— video decoding is the primary cause of high load'scheduleDuration'— Daily code is not completing within its scheduled interval