aboutsummaryrefslogtreecommitdiffstats
path: root/lib/observer/doc/src/ttb.xml
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2016-04-28 09:52:48 +0200
committerSiri Hansen <[email protected]>2016-05-19 15:21:51 +0200
commit90989e58d9e7f7c6fc3c4b52e4191d66d8ff2a96 (patch)
tree36ede4d0699b550b9c695965fbcb7a04dcc5c166 /lib/observer/doc/src/ttb.xml
parent7c605482cb179dc81b219d239d15c585049b6433 (diff)
downloadotp-90989e58d9e7f7c6fc3c4b52e4191d66d8ff2a96.tar.gz
otp-90989e58d9e7f7c6fc3c4b52e4191d66d8ff2a96.tar.bz2
otp-90989e58d9e7f7c6fc3c4b52e4191d66d8ff2a96.zip
[ttb] Allow setting trace flags on ports
Diffstat (limited to 'lib/observer/doc/src/ttb.xml')
-rw-r--r--lib/observer/doc/src/ttb.xml30
1 files changed, 18 insertions, 12 deletions
diff --git a/lib/observer/doc/src/ttb.xml b/lib/observer/doc/src/ttb.xml
index 76bbc777e8..94ecef24b4 100644
--- a/lib/observer/doc/src/ttb.xml
+++ b/lib/observer/doc/src/ttb.xml
@@ -229,27 +229,33 @@ ttb:p(all, call).</input></pre>
</func>
<func>
- <name>p(Procs,Flags) -> Return</name>
- <fsummary>Set the specified trace flags on the specified processes.</fsummary>
+ <name>p(Item,Flags) -> Return</name>
+ <fsummary>Set the specified trace flags on the specified processes or ports.</fsummary>
<type>
- <v>Return = {ok,[{Procs,MatchDesc}]}</v>
- <v>Procs = Process | [Process] | all | new | existing</v>
- <v>Process = pid() | atom() | {global,atom()}</v>
+ <v>Return = {ok,[{Item,MatchDesc}]}</v>
+ <v>Items = Item | [Item]</v>
+ <v>Item = pid() | port() | RegName | {global,GlobalRegName} |
+ all | processes | ports |
+ existing | existing_processes | existing_ports |
+ new | new_processes | new_ports</v>
+ <v>RegName = atom()</v>
+ <v>GlobalRegName = term()</v>
<v>Flags = Flag | [Flag]</v>
</type>
<desc>
- <p>Sets the specified trace flags on the specified
- processes. Flag <c>timestamp</c> is always turned on.
+ <p>Sets the specified trace flags on the specified processes
+ or ports. Flag <c>timestamp</c> is always turned on.
</p>
<p>See the Reference Manual for module
<seealso marker="runtime_tools:dbg"><c>dbg</c></seealso>
- and the possible trace flags. Parameter
+ for the possible trace flags. Parameter
<c>MatchDesc</c> is the same as returned from
<c>dbg:p/2</c>.</p>
<p>Processes can be specified as registered names, globally
- registered names, or process identifiers. If a registered name
- is specified, the flags are set on processes with this name on all
- active nodes.</p>
+ registered names, or process identifiers. Ports can be
+ specified as registered names or port identifiers. If a
+ registered name is specified, the flags are set on
+ processes/ports with this name on all active nodes.</p>
<p>Issuing this command starts the timer for this trace if option
<c>timer</c> is specified with <c>tracer/2</c>.
</p>
@@ -267,7 +273,7 @@ ttb:p(all, call).</input></pre>
function calls are traced on that process if a trace
pattern is set for the called function.</p>
<p>The <c>send</c> and <c>'receive'</c> flags enable tracing
- of all messages sent and received by the process. Trace
+ of all messages sent and received by the process/port. Trace
patterns set with <c>tpe</c> may limit traced messages based
on the message content, the sender, and/or the receiver.</p>
<p>Trace patterns specify how to trace a function or a message