Add bh_print_proc_mem() to dump memory info of current process (#1734)
Only support Posix platforms currently, read memory consumption info from file "/proc/self/status".
This commit is contained in:
@ -85,6 +85,12 @@ void
|
||||
os_free(void *ptr)
|
||||
{}
|
||||
|
||||
int
|
||||
os_dumps_proc_mem_info(char *out, unsigned int size)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
#if 0
|
||||
struct out_context {
|
||||
int count;
|
||||
|
||||
Reference in New Issue
Block a user