From 3e0e79218065458b816cd726bd637f1ecd00a882 Mon Sep 17 00:00:00 2001
From: Hans Bolinder
Date: Tue, 13 Oct 2015 14:02:48 +0200
Subject: [observer] Correct documentation
Fix mistakes found by 'xmllint'.
---
lib/observer/doc/src/ttb.xml | 17 ++++++++---------
1 file changed, 8 insertions(+), 9 deletions(-)
(limited to 'lib/observer/doc/src/ttb.xml')
diff --git a/lib/observer/doc/src/ttb.xml b/lib/observer/doc/src/ttb.xml
index 0b064b51b8..0a50a20716 100644
--- a/lib/observer/doc/src/ttb.xml
+++ b/lib/observer/doc/src/ttb.xml
@@ -25,8 +25,7 @@
ttb
- Siri hansen
- Bartlomiej Puzon
+ Siri hansen, Bartlomiej Puzon
1
@@ -60,17 +59,16 @@
This function is a shortcut allowing to start a trace with one command. Each
tuple in Patterns is converted to list which is in turn passed to
ttb:tpl.
- The call:
+ The call:
ttb:start_trace([Node, OtherNode],
[{mod, foo, []}, {mod, bar, 2}],
{all, call},
[{file, File}, {handler,{fun myhandler/4, S}}])
- is equivalent to
+ is equivalent to
ttb:start_trace([Node, OtherNode], [{file, File}, {handler,{fun myhandler/4, S}}]),
ttb:tpl(mod, foo, []),
ttb:tpl(mod, bar, 2, []),
ttb:p(all, call)
-
@@ -193,7 +191,7 @@ ttb:p(all, call)
(i.e. on diskless nodes), a custom module to handle autostart
information storage and retrieval can be provided by specifying
ttb_autostart_module environment variable for the runtime_tools
- application. The module has to respond to the following API:
+ application. The module has to respond to the following API:
write_config(Data) -> ok
- Store the provided data for further retrieval. It is
@@ -207,7 +205,6 @@ ttb:p(all, call)
must return {error, Error}.
-
The resume option implies the default FetchTimeout, which is
10 seconds
@@ -272,17 +269,19 @@ ttb:p(all, call)
- Clear trace pattern on global function calls
With tp and tpl one of match specification shortcuts
- may be used (example: ttb:tp(foo_module, caller)). The shortcuts are:
+ may be used (example: ttb:tp(foo_module, caller)). The shortcuts are:
+
- return - for [{'_',[],[{return_trace}]}]
(report the return value)
+
- caller - for [{'_',[],[{message,{caller}}]}]
(report the calling function)
+
- {codestr, Str} - for dbg:fun2ms/1 arguments
passed as strings (example: "fun(_) -> return_trace() end")
-
--
cgit v1.2.3