> Documentation index: https://developer.android.com/ndk/reference/llms.txt

# AMemoryBudgetEvent

Container for parsed cgroup v2 memory.events.

## Summary

For process cgroups, this corresponds to events affecting this process. For package cgroups, this is the sum of all events affecting processes that belong to this application.

Introduced in API 38.

| ### Public attributes ||
|---|---|
| `high` | `int64_t` The number of times processes in the cgroup were throttled and forced to perform direct reclaim because the 'high' boundary was exceeded. |
| `low` | `int64_t` The number of times reclaim was triggered for the cgroup when usage was below the 'low' boundary. |
| `max` | `int64_t` The number of times the cgroup's memory usage reached the 'max' boundary, triggering direct reclaim. |
| `oom` | `int64_t` The number of times memory allocation was about to fail because the cgroup reached its limit. |
| `oom_group_kill` | `int64_t` The number of times the entire cgroup was terminated collectively by the OOM group killer. |
| `oom_kill` | `int64_t` The number of processes in this cgroup or its subtree killed by the OOM killer. |

## Public attributes

### high

Declared in `android/memory_budget_manager.h`

```
int64_t AMemoryBudgetEvent::high
```
The number of times processes in the cgroup were throttled and forced to perform direct reclaim because the 'high' boundary was exceeded.

### low

Declared in `android/memory_budget_manager.h`

```
int64_t AMemoryBudgetEvent::low
```
The number of times reclaim was triggered for the cgroup when usage was below the 'low' boundary.

### max

Declared in `android/memory_budget_manager.h`

```
int64_t AMemoryBudgetEvent::max
```
The number of times the cgroup's memory usage reached the 'max' boundary, triggering direct reclaim.

### oom

Declared in `android/memory_budget_manager.h`

```
int64_t AMemoryBudgetEvent::oom
```
The number of times memory allocation was about to fail because the cgroup reached its limit.

### oom_group_kill

Declared in `android/memory_budget_manager.h`

```
int64_t AMemoryBudgetEvent::oom_group_kill
```
The number of times the entire cgroup was terminated collectively by the OOM group killer.

### oom_kill

Declared in `android/memory_budget_manager.h`

```
int64_t AMemoryBudgetEvent::oom_kill
```
The number of processes in this cgroup or its subtree killed by the OOM killer.