They call into vendor SDK functions system_get_free_heap_size() and system_print_meminfo() respectively.