diff options
author | Sverker Eriksson <[email protected]> | 2013-09-26 22:36:34 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2013-09-30 17:45:47 +0200 |
commit | 059d8b76011f960cc5938501a33002b051b0bca2 (patch) | |
tree | be0900966bbc9186356a59cf8e675ff0da49991f /erts/emulator/sys/common/erl_mmap.h | |
parent | 8d5b9a53a1fd5e2264d705911af23cd484ccead0 (diff) | |
download | otp-059d8b76011f960cc5938501a33002b051b0bca2.tar.gz otp-059d8b76011f960cc5938501a33002b051b0bca2.tar.bz2 otp-059d8b76011f960cc5938501a33002b051b0bca2.zip |
erts: Add erts_mmap stats
As part of erlang:system_info({allocator,mseg_alloc})
and erl_crash.dump
Diffstat (limited to 'erts/emulator/sys/common/erl_mmap.h')
-rw-r--r-- | erts/emulator/sys/common/erl_mmap.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/erts/emulator/sys/common/erl_mmap.h b/erts/emulator/sys/common/erl_mmap.h index 106459f872..e6934dbb26 100644 --- a/erts/emulator/sys/common/erl_mmap.h +++ b/erts/emulator/sys/common/erl_mmap.h @@ -57,8 +57,18 @@ void erts_munmap(Uint32 flags, void *ptr, UWord size); void *erts_mremap(Uint32 flags, void *ptr, UWord old_size, UWord *sizep); int erts_mmap_in_supercarrier(void *ptr); void erts_mmap_init(ErtsMMapInit*); +struct erts_mmap_info_struct +{ + UWord sizes[6]; + UWord segs[6]; + UWord os_used; +}; +Eterm erts_mmap_info(int *print_to_p, void *print_to_arg, + Eterm** hpp, Uint* szp, struct erts_mmap_info_struct*); +Eterm erts_mmap_info_options(char *prefix, int *print_to_p, void *print_to_arg, + Uint **hpp, Uint *szp); struct process; -Eterm erts_mmap_info(struct process*); +Eterm erts_mmap_debug_info(struct process*); #define ERTS_SUPERALIGNED_SIZE \ (1 << ERTS_MMAP_SUPERALIGNED_BITS) |