Loading...
Searching...
No Matches
memmgr_heap.h File Reference

Furi: heap memory management API and allocator. More...

#include <stdint.h>
#include <core/thread.h>

Go to the source code of this file.

Macros

#define MEMMGR_HEAP_UNKNOWN   0xFFFFFFFF
 

Functions

void memmgr_heap_enable_thread_trace (FuriThreadId thread_id)
 Memmgr heap enable thread allocation tracking.
 
void memmgr_heap_disable_thread_trace (FuriThreadId thread_id)
 Memmgr heap disable thread allocation tracking.
 
size_t memmgr_heap_get_thread_memory (FuriThreadId thread_id)
 Memmgr heap get allocatred thread memory.
 
size_t memmgr_heap_get_max_free_block (void)
 Memmgr heap get the max contiguous block size on the heap.
 
void memmgr_heap_printf_free_blocks (void)
 Print the address and size of all free blocks to stdout.
 

Detailed Description

Furi: heap memory management API and allocator.

Function Documentation

◆ memmgr_heap_disable_thread_trace()

void memmgr_heap_disable_thread_trace ( FuriThreadId thread_id)

Memmgr heap disable thread allocation tracking.

Parameters
thread_id- thread id to track

◆ memmgr_heap_enable_thread_trace()

void memmgr_heap_enable_thread_trace ( FuriThreadId thread_id)

Memmgr heap enable thread allocation tracking.

Parameters
thread_id- thread id to track

◆ memmgr_heap_get_max_free_block()

size_t memmgr_heap_get_max_free_block ( void )

Memmgr heap get the max contiguous block size on the heap.

Returns
size_t max contiguous block size

◆ memmgr_heap_get_thread_memory()

size_t memmgr_heap_get_thread_memory ( FuriThreadId thread_id)

Memmgr heap get allocatred thread memory.

Parameters
thread_id- thread id to track
Returns
bytes allocated right now