From 7b801aa3641f0a59448604c857cfb0e67eed9e19 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn-Egil=20Dahlberg?=
Date: Mon, 2 May 2016 18:29:26 +0200
Subject: erts: Update garbage collection trace documentation
---
erts/doc/src/erlang.xml | 39 ++++++++++++++++++++++++++++-----------
1 file changed, 28 insertions(+), 11 deletions(-)
diff --git a/erts/doc/src/erlang.xml b/erts/doc/src/erlang.xml
index 423ccdf98f..3ccb76f7b3 100644
--- a/erts/doc/src/erlang.xml
+++ b/erts/doc/src/erlang.xml
@@ -4702,7 +4702,7 @@ os_prompt%
detailed information about garbage collection for this process.
The content of GCInfo can be changed without
prior notice.
- See gc_start in
+ See gc_minor_start in
erlang:trace/3 for details about
what each item means.
@@ -7966,7 +7966,7 @@ ok
stack_size, mbuf_size, old_heap_size,
and old_heap_block_size. These tuples are
explained in the description of trace message
- gc_start (see
+ gc_minor_start (see
erlang:trace/3).
New tuples can be added, and the order of the tuples in
the Info list can be changed at any time without
@@ -8556,7 +8556,7 @@ timestamp() ->
garbage_collection
-
Traces garbage collections of processes.
- Message tags: gc_start and gc_end.
+ Message tags: gc_minor_start and gc_minor_end.
timestamp
-
@@ -8880,12 +8880,12 @@ timestamp() ->
-
- {trace, Pid, gc_start, Info}
+
+ {trace, Pid, gc_minor_start, Info}
-
-
-
Sent when garbage collection is about to be started.
+
+
Sent when a young garbage collection is about to be started.
Info is a list of two-element tuples, where
the first element is a key, and the second is the value.
Do not depend on any order of the tuples.
@@ -8925,15 +8925,32 @@ timestamp() ->
All sizes are in words.
-
- {trace, Pid, gc_end, Info}
+
+ {trace, Pid, gc_minor_end, Info}
-
-
Sent when garbage collection is finished. Info
- contains the same kind of list as in message gc_start,
+
Sent when young garbage collection is finished. Info
+ contains the same kind of list as in message gc_minor_start,
but the sizes reflect the new sizes after
garbage collection.
+
+
+ {trace, Pid, gc_major_start, Info}
+
+ -
+
Sent when fullsweep garbage collection is about to be started. Info
+ contains the same kind of list as in message gc_minor_start.
+
+
+
+ {trace, Pid, gc_major_end, Info}
+
+ -
+
Sent when fullsweep garbage collection is finished. Info
+ contains the same kind of list as in message gc_minor_start
+ but the sizes reflect the new sizes after a fullsweep garbage collection.
+
If the tracing process/port dies or the tracer module returns
remove, the flags are silently removed.
--
cgit v1.2.3
From ddf385e4da6ecc453b4df99aba654a2b7525c6df Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn-Egil=20Dahlberg?=
Date: Mon, 2 May 2016 18:37:04 +0200
Subject: erts: Remove forgotten atoms in erl_tracer
---
erts/emulator/nifs/common/erl_tracer_nif.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/erts/emulator/nifs/common/erl_tracer_nif.c b/erts/emulator/nifs/common/erl_tracer_nif.c
index 1bb6b940c4..55bfc1a470 100644
--- a/erts/emulator/nifs/common/erl_tracer_nif.c
+++ b/erts/emulator/nifs/common/erl_tracer_nif.c
@@ -72,8 +72,6 @@ ERL_NIF_INIT(erl_tracer, nif_funcs, load, NULL, upgrade, unload)
ATOM_DECL(trace); \
ATOM_DECL(trace_ts); \
ATOM_DECL(true); \
- ATOM_DECL(gc_start); \
- ATOM_DECL(gc_end); \
ATOM_DECL(gc_minor_start); \
ATOM_DECL(gc_minor_end); \
ATOM_DECL(gc_major_start); \
--
cgit v1.2.3