The Trace Tool Builder,
When using
This function is a shortcut allowing to start a trace with one command. Each
tuple in
The call:
> 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).
Equivalent to
Handy shortcuts for common tracing settings.
Equivalent to
Starts a file trace port on all specified nodes and points the system tracer for sequential tracing to the same port.
Options:
The specified
Can be used if the size of the trace logs must be limited.
Default values are
When tracing diskless nodes,
Indicates if process
information is to be collected. If
Indicates that trace messages are to be printed on the
console as they are received by the tracing process. This implies
trace client
Shortcut for
Indicates that the trace is to be
automatically stopped after
Allows to enable overload
checking on the nodes under trace.
When a node gets overloaded, it is not possible to issue
Periodically flushes all file trace
port clients (see
Enables the autoresume feature.
When enabled, remote nodes try to reconnect to the controlling node
if they are restarted. The feature requires application Runtime_Tools
to be started (so it has to be present in the
By default, autostart information is stored in a file named
Stores the provided data for further retrieval. It is important to realize that the data storage used must not be affected by the node crash.
Retrieves configuration stored with
Deletes configuration stored with
Sets the specified trace flags on the specified
processes. Flag
See the Reference Manual for module
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.
Issuing this command starts the timer for this trace if option
These functions are to be used with
trace flag
These functions are equivalent to the corresponding
functions in module
Sets trace patterns on global function calls.
Sets trace patterns on local and global function calls.
Clears trace patterns on local and global function calls.
Clears trace patterns on local function calls.
Clears trace patterns on global function calls.
With
The shortcuts are as follows:
All calls to
Executes the specified entry or entries from the history
list. To list history, use
Equivalent to
Creates or extends a configuration file, which can be used for restoring a specific configuration later.
The contents of the configuration file can either be fetched from
the history or specified directly as a list of
If the complete history is to be stored in the configuration file,
If
Executes all entries in the specified configuration file.
Notice that the history of the last trace is always available
in file
Executes selected entries from the specified configuration
file.
To list the contents of a configuration file, use
Notice that the history of the last trace is always available
in file
Lists all entries in the specified configuration file.
File
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 specified
This match specification can be specified as the last argument
to
If
The possible values for
For a description of the
The system tracer for sequential tracing is
automatically initiated by
An example of how to use function
(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
Options:
Indicates that trace logs are not to be collected after tracing is stopped.
Allows specification of the directory to fetch the data to. If the directory already exists, an error is thrown.
Indicates the trace logs to be formatted after tracing is stopped. All logs in the fetch directory are merged.
Indicates the return value
to be
Returns the
Example:
Equivalent to
Reads the specified binary trace log(s). The logs are processed
in the order of their time stamps as long as option
If
If
If
The state returned from each call of
If
Wrap logs can be formatted one by one or all at once. To
format one of the wrap logs in a set, specify the exact file name.
To format the whole set of wrap logs, specify the name
with