> For the complete documentation index, see [llms.txt](https://mariadb.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mariadb.com/docs/server/reference/plugins/api-plugin/memory_instrumentation.md).

# Memory Instrumentation

The mysql\_memory\_register macro, which registers memory instruments with the Performance Schema.

> [`Instrumentation Interface`](/docs/server/reference/plugins/api-plugin/instrumentation_interface.md)

## Macros

| Name                                              | Description          |
| ------------------------------------------------- | -------------------- |
| [`mysql_memory_register`](#mysql_memory_register) | Memory registration. |

***

### mysql\_memory\_register

```cpp
#define mysql_memory_register(P1, P2, P3, P1, P2, P3) inline_mysql_memory_register(P1, P2, P3)
```

Defined in psi/mysql\_memory.h:59

Memory registration.

## Functions

| Return | Name                                                                              | Description |
| ------ | --------------------------------------------------------------------------------- | ----------- |
| `void` | [`inline_mysql_memory_register`](#inline_mysql_memory_register) `static` `inline` |             |

***

### inline\_mysql\_memory\_register

`static` `inline`

```cpp
static inline void inline_mysql_memory_register(const char *category __attribute__, void *info __attribute__, int count __attribute__, const char *category __attribute__, void *info __attribute__, int count __attribute__)
```

Defined in psi/mysql\_memory.h:62
