From c3e7acb4fe304d117f7361292d36f5d73df3e1c7 Mon Sep 17 00:00:00 2001
From: Lukas Larsson
Date: Tue, 5 Apr 2016 11:26:52 +0200
Subject: erts: Make trace_delivered go via sys msg dispatcher again
This is needed as otherwise messages from system_profile
will not be guaranteed to arrive before trace delivered.
---
erts/doc/src/erlang.xml | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
(limited to 'erts/doc/src/erlang.xml')
diff --git a/erts/doc/src/erlang.xml b/erts/doc/src/erlang.xml
index fde04504c8..423ccdf98f 100644
--- a/erts/doc/src/erlang.xml
+++ b/erts/doc/src/erlang.xml
@@ -8958,7 +8958,11 @@ timestamp() ->
Notification when trace has been delivered.
- The delivery of trace messages is dislocated on the time-line
+
The delivery of trace messages (generated by
+ erlang:trace/3,
+ seq_trace or
+ erlang:system_profile/2)
+ is dislocated on the time-line
compared to other events in the system. If you know that
Tracee has passed some specific point
in its execution,
@@ -8984,8 +8988,11 @@ timestamp() ->
or previously existing on the same node as the caller of
erlang:trace_delivered(Tracee) resides on.
The special Tracee atom all
- denotes all processes
- that currently are traced in the node.
+ denotes all processes that currently are traced in the node.
+ When used together with an
+ Tracer Module any message sent in the trace callback
+ is guaranteed to have reached it's recipient before the
+ trace_delivered message is sent.
Example: Process A is Tracee,
port B is tracer, and process C is the port
owner of B. C wants to close B when
--
cgit v1.2.3