diff options
author | Lukas Larsson <[email protected]> | 2016-01-26 10:18:05 +0100 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2016-01-26 10:21:01 +0100 |
commit | 82dfea33002de4ad456b59d11d912c148e2debfb (patch) | |
tree | 7c51f8413827d28b0520ce3e20abba94ee6226b6 /erts/emulator/beam/erl_gc.h | |
parent | d60ac245114e7e7d82bd21ca047f5bdf6016708b (diff) | |
parent | 9d0a5bf2c1cc564fd38268cbb5313cd8813ea138 (diff) | |
download | otp-82dfea33002de4ad456b59d11d912c148e2debfb.tar.gz otp-82dfea33002de4ad456b59d11d912c148e2debfb.tar.bz2 otp-82dfea33002de4ad456b59d11d912c148e2debfb.zip |
Merge branch 'lukas/erts/gc_info/OTP-13265'
* lukas/erts/gc_info/OTP-13265:
erts: Add garbage_collection_info to process_info/2
Conflicts:
erts/emulator/beam/erl_bif_info.c
Diffstat (limited to 'erts/emulator/beam/erl_gc.h')
-rw-r--r-- | erts/emulator/beam/erl_gc.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_gc.h b/erts/emulator/beam/erl_gc.h index d603866cbf..2cedd9361f 100644 --- a/erts/emulator/beam/erl_gc.h +++ b/erts/emulator/beam/erl_gc.h @@ -132,6 +132,11 @@ typedef struct { Uint64 garbage_cols; } ErtsGCInfo; +#define ERTS_PROCESS_GC_INFO_MAX_TERMS (11) /* number of elements in process_gc_info*/ +#define ERTS_PROCESS_GC_INFO_MAX_SIZE \ + (ERTS_PROCESS_GC_INFO_MAX_TERMS * (2/*cons*/ + 3/*2-tuple*/ + BIG_UINT_HEAP_SIZE)) +Eterm erts_process_gc_info(struct process*, Uint *, Eterm **); + void erts_gc_info(ErtsGCInfo *gcip); void erts_init_gc(void); int erts_garbage_collect_nobump(struct process*, int, Eterm*, int); |