Skip to content

struct osOomRecord_t ​

Evidence of one failed heap allocation. More...

#include <kernel/oom.h>

Public Attributes ​

Name
uint32_tboot
uint32_tuptime_ms
uint32_tsize
uint32_tfree_heap
uint32_tmin_free_heap
char[(16)]thread

Detailed Description ​

cpp
struct osOomRecord_t;

Evidence of one failed heap allocation.

Lives in reboot-safe RAM, so a record written right before a reset is still readable in the next boot. Compare boot with osGetRebootCount() to tell whether the event belongs to this boot.

Public Attributes Documentation ​

variable boot ​

cpp
uint32_t osOomRecord_t::boot

osGetRebootCount() at the time of the failure.

variable uptime_ms ​

cpp
uint32_t osOomRecord_t::uptime_ms

Kernel tick count at the time of the failure.

variable size ​

cpp
uint32_t osOomRecord_t::size

Block size the heap tried to carve: request plus heap header, aligned. 0 means a zero-length request.

variable free_heap ​

cpp
uint32_t osOomRecord_t::free_heap

Free heap at that moment, bytes.

variable min_free_heap ​

cpp
uint32_t osOomRecord_t::min_free_heap

Lowest free heap since boot at that moment, bytes.

variable thread ​

cpp
char osOomRecord_t::thread[(16)]

Allocating thread; "" before the scheduler runs.