Appearance
struct osOomRecord_t
Evidence of one failed heap allocation. More...
#include <kernel/oom.h>
Public Attributes
| Name | |
|---|---|
| uint32_t | boot |
| uint32_t | uptime_ms |
| uint32_t | size |
| uint32_t | free_heap |
| uint32_t | min_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::bootosGetRebootCount() at the time of the failure.
variable uptime_ms
cpp
uint32_t osOomRecord_t::uptime_msKernel tick count at the time of the failure.
variable size
cpp
uint32_t osOomRecord_t::sizeBlock 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_heapFree heap at that moment, bytes.
variable min_free_heap
cpp
uint32_t osOomRecord_t::min_free_heapLowest free heap since boot at that moment, bytes.
variable thread
cpp
char osOomRecord_t::thread[(16)]Allocating thread; "" before the scheduler runs.