From 54172674e71caf7da7a0b069c9bd92543e4f705d Mon Sep 17 00:00:00 2001
From: Sverker Eriksson
Date: Wed, 4 May 2016 14:45:05 +0200
Subject: erts: Add send and 'receive' to trace_info/2
to obtain match specs
---
erts/doc/src/erlang.xml | 33 ++++++++++++++++++++++-----------
1 file changed, 22 insertions(+), 11 deletions(-)
(limited to 'erts/doc')
diff --git a/erts/doc/src/erlang.xml b/erts/doc/src/erlang.xml
index f42923a009..5af4f0bd66 100644
--- a/erts/doc/src/erlang.xml
+++ b/erts/doc/src/erlang.xml
@@ -9015,16 +9015,16 @@ timestamp() ->
- Returns trace information about a port, process or function.
- To get information about a port or process,
- PidPortOrFunc is to
+
Returns trace information about a port, process, function or event.
+ To get information about a port or process,
+ PidPortFuncEvent is to
be a process identifier (pid), port identifier or one of
the atoms new, new_processes, new_ports.
The atom new or new_processes means that the default trace
state for processes to be created is returned. The atom new_ports
means that the default trace state for ports to be created is returned.
- The following Items are valid:
+ The following Items are valid for ports and processes:
flags
-
@@ -9048,12 +9048,15 @@ timestamp() ->
value is [].
- To get information about a function, PidPortOrFunc is to
+
To get information about a function, PidPortFuncEvent is to
be the three-element tuple {Module, Function, Arity} or
the atom on_load. No wild cards are allowed. Returns
undefined if the function does not exist, or
- false if the function is not traced.
- The following Items are valid::
+ false if the function is not traced. If PidPortFuncEvent
+ is on_load, the information returned refers to
+ the default value for code that will be loaded.
+
+ The following Items are valid for functions:
traced
-
@@ -9112,13 +9115,21 @@ timestamp() ->
is active for this function.
+ To get information about an event, PidPortFuncEvent is to
+ be one of the atoms send or 'receive'.
+ The only valid Item for events is:
+
+ match_spec
+ -
+
Returns the match specification for this event, if it
+ has one, or true if no match specification has been
+ set.
+
+
The return value is {Item, Value}, where
Value is the requested information as described earlier.
If a pid for a dead process was given, or the name of a
non-existing function, Value is undefined.
- If PidPortOrFunc is on_load, the information
- returned refers to the default value for code that will be
- loaded.
@@ -9237,7 +9248,7 @@ timestamp() ->
false
-
-
Disables tracing for all sent messages.
+
Disables tracing for all received messages.
Any match specification is removed.
--
cgit v1.2.3