useCPULoad
useCPULoad(params?): Object
Returns current information about the CPU status.
Params (optional)
Parameter | Required | Type | Description |
---|---|---|---|
onCPULoadChange | Function | Event callback for the cpu-load-change event |
Return type
An object with the following properties:
Name | Type | Description |
---|---|---|
state | string | 'low' | 'high' , an assessment of the current CPU state. See cpu-load-change for more details |
reason | string | 'none' | 'encode' | 'decode' | 'scheduleDuration' . See cpu-load-change for more details |