Home
last modified time | relevance | path

Searched refs:heap_info (Results 1 – 6 of 6) sorted by relevance

/AliOS-Things-master/components/amp/engine/duktape_engine/addons/utils/system/
A Dmodule_system.c63 amp_heap_info_t heap_info; in native_system_memory() local
65 ret = amp_heap_memory_info(&heap_info); in native_system_memory()
73 duk_push_number(ctx, heap_info.heap_total); in native_system_memory()
76 duk_push_number(ctx, heap_info.heap_used); in native_system_memory()
79 duk_push_number(ctx, heap_info.heap_free); in native_system_memory()
/AliOS-Things-master/components/py_engine/modules/system/
A Dmodsystem.c73 amp_heap_info_t heap_info; in obj_getMemory() local
75 ret = amp_heap_memory_info(&heap_info); in obj_getMemory()
81 …mp_obj_dict_store(dict, mp_obj_new_str("total",strlen("total")), mp_obj_new_int(heap_info.heap_tot… in obj_getMemory()
82 …mp_obj_dict_store(dict, mp_obj_new_str("used",strlen("used")), mp_obj_new_int(heap_info.heap_used)… in obj_getMemory()
83 …mp_obj_dict_store(dict, mp_obj_new_str("free",strlen("free")), mp_obj_new_int(heap_info.heap_free)… in obj_getMemory()
/AliOS-Things-master/components/amp_adapter/platform/aos/
A Daos_system.c175 int amp_heap_memory_info(amp_heap_info_t *heap_info) in amp_heap_memory_info() argument
177 heap_info->heap_total = g_kmm_head->free_size + g_kmm_head->used_size; in amp_heap_memory_info()
178 heap_info->heap_used = g_kmm_head->used_size; in amp_heap_memory_info()
179 heap_info->heap_free = g_kmm_head->free_size; in amp_heap_memory_info()
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/utils/system/
A Dmodule_system.c88 amp_heap_info_t heap_info; in native_system_memory() local
90 ret = amp_heap_memory_info(&heap_info); in native_system_memory()
97 JS_SetPropertyStr(ctx, t, "heapTotal", JS_NewInt32(ctx, heap_info.heap_total)); in native_system_memory()
98 JS_SetPropertyStr(ctx, t, "heapUsed", JS_NewInt32(ctx, heap_info.heap_used)); in native_system_memory()
99 JS_SetPropertyStr(ctx, t, "heapFree", JS_NewInt32(ctx, heap_info.heap_free)); in native_system_memory()
/AliOS-Things-master/components/amp_adapter/include/
A Daos_system.h112 int amp_heap_memory_info(amp_heap_info_t *heap_info);
/AliOS-Things-master/components/amp_adapter/platform/linux/
A Daos_system.c585 int amp_heap_memory_info(amp_heap_info_t *heap_info) in amp_heap_memory_info() argument

Completed in 13 milliseconds