The Trace Tool Builder
When using
This function is a shortcut allowing to start a trace with one command. Each
tuple in
ttb:start_trace([Node, OtherNode],
[{mod, foo, []}, {mod, bar, 2}],
{all, call},
[{file, File}, {handler,{fun myhandler/4, S}}])
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)
This is equivalent to
This is equivalent to
This function starts a file trace port on all given nodes and also points the system tracer for sequential tracing to the same port.
The given
When tracing diskless nodes,
The
The
The
The
The
When a node gets overloaded, it is not possible to issue
The
By default, autostart information is stored in a file called
The
This function sets the given trace flags on the given
processes. The
Please turn to the Reference manual for module
Processes can be given as registered names, globally registered names or process identifiers. If a registered name is given, the flags are set on processes with this name on all active nodes.
Issuing this command starts the timer for this trace if
These functions should be used in combination with the
These functions are equivalent to the corresponding
functions in
With
All calls to
Executes the given entry or entries from the history
list. History can be listed with
Equivalent to
This function creates or extends a config file which can be used for restoring a specific configuration later.
The content of the config file can either be fetched from
the history or given directly as a list of
If the complete history is to be stored in the config file
If
Executes all entries in the given config file. Note that the history
of the last trace is always available in the file named
Executes selected entries from the given config
file.
The content of a config file can be listed with
Note that the history
of the last trace is always available in the file named
Lists all entries in the given config file.
The
Equivalent to
A match specification can turn on or off sequential
tracing. This function returns a match specification which
turns on sequential tracing with the given
This match specification can be given as the last argument
to
If
Please turn to the reference manual for the
The system tracer for sequential tracing is
automatically initiated by
Example of how to use the
(tiger@durin)5> ttb:tracer().
{ok,[tiger@durin]}
(tiger@durin)6> ttb:p(all,call).
{ok,{[all],[call]}}
(tiger@durin)7> ttb:tp(mod,func,ttb:seq_trigger_ms()).
{ok,[{matched,1},{saved,1}]}
(tiger@durin)8>
Whenever
Equivalent to
Stops tracing on all nodes. Logs and
trace information files are sent to the trace control
node and stored in a directory named
The
The
The
The
The
Same as
Reads the given binary trace log(s). The logs are processed
in the order of their timestamp as long as
If
If
Wrap logs can be formatted one by one or all in one go. To
format one of the wrap logs in a set, give the exact name of
the file. To format the whole set of wrap logs, give the name
with '*' instead of the wrap count. See examples in the