> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/holoscan/sdk-user-guide/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/holoscan/sdk-user-guide/_mcp/server.

# holoscan::CPUInfo

> CPUInfo struct.

`CPUInfo` struct.

This struct is responsible for holding the CPU information.

```cpp showLineNumbers={false}
#include <holoscan/cpu_info.hpp>
```

***

## Member variables

| Name                      | Type       | Description                             |
| ------------------------- | ---------- | --------------------------------------- |
| `metric_flags`            | `uint64_t` | The metric flags.                       |
| `num_cores`               | `int32_t`  | The number of cores.                    |
| `num_cpus`                | `int32_t`  | The number of CPUs.                     |
| `num_processors`          | `int32_t`  | The number of available processors.     |
| `cpu_usage`               | `float`    | The CPU usage (in percent).             |
| `memory_total`            | `uint64_t` | The total memory (in bytes).            |
| `memory_free`             | `uint64_t` | The free memory (in bytes).             |
| `memory_available`        | `uint64_t` | The available memory (in bytes).        |
| `memory_usage`            | `float`    | The memory usage (in percent).          |
| `shared_memory_total`     | `uint64_t` | The total shared memory (in bytes).     |
| `shared_memory_free`      | `uint64_t` | The free shared memory (in bytes).      |
| `shared_memory_available` | `uint64_t` | The available shared memory (in bytes). |
| `shared_memory_usage`     | `float`    | The shared memory usage (in percent).   |