> ## Documentation Index
> Fetch the complete documentation index at: https://docs.daily.co/llms.txt
> Use this file to discover all available pages before exploring further.

# useCPULoad

> Returns current information about the CPU status.

`useCPULoad(params?): Object`

## Parameters (optional)

<ParamField body="onCPULoadChange" type="Function">
  Event callback for the [`cpu-load-change`](/reference/daily-js/events/network-events#cpu-load-change) event.
</ParamField>

## Return value

An object with the following properties:

<ResponseField name="state" type="string">
  <code>'low' | 'high'</code>, an assessment of the current CPU state. See [`cpu-load-change`](/reference/daily-js/events/network-events#cpu-load-change) for more details.
</ResponseField>

<ResponseField name="reason" type="string">
  <code>'none' | 'encode' | 'decode' | 'scheduleDuration'</code>. See [`cpu-load-change`](/reference/daily-js/events/network-events#cpu-load-change) for more details.
</ResponseField>

```json theme={null}
{
  "state": "low",
  "reason": "none"
}
```

## Example

```jsx theme={null}
import { useCPULoad } from '@daily-co/daily-react';

export const UseCPULoadDemo = () => {
  const cpu = useCPULoad();

  return <div>CPU load: {cpu.state}</div>;
};
```

## See also

<CardGroup>
  <Card title="Events" icon="bolt" iconType="solid">
    * [cpu-load-change](/reference/daily-js/events/network-events#cpu-load-change)
  </Card>

  <Card title="daily-js methods" icon="code" iconType="solid">
    * [getNetworkStats()](/reference/daily-js/instance-methods/get-network-stats)
  </Card>
</CardGroup>
