mruby-tlsf
uses TLSF memory allocator written by Matthew Conte as a custom allocator in mruby.
This mrbgem defines mrb_state* mrb_open_tlsf(void *mem, size_t bytes)
.
You can use this instead of mrb_open()
.
TLSF::available_memory
: returns available memory.TLSF::used_memory
: returns used memory.TLSF::total_memory
: returns total memory.
MIT