Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

et_selector(3erl) [linux man page]

et_selector(3erl)					     Erlang Module Definition						 et_selector(3erl)

NAME
et_selector - Define event transforms and trace patterns DESCRIPTION
EXPORTS
make_pattern(RawPattern) -> TracePattern Types RawPattern = detail_level() TracePattern = erlang_trace_pattern_match_spec() detail_level() = min | max | integer(X) when X >= 0, X =< 100 Makes a trace pattern suitable to feed change_pattern/1 Min detail level deactivates tracing of calls to et:trace_me/4,5 Max detail level activates tracing of all calls to et:trace_me/4,5 integer(X) detail level activates tracing of all calls to et:trace_me/4,5 whose detail level argument is lesser than X. See also erlang:trace_pattern/2 for more info about its match_spec() change_pattern(Pattern) -> ok Types Pattern = detail_level() | empty_match_spec() | erlang_trace_pattern_match_spec() detail_level() = min | max | integer(X) when X >= 0, X =< 100 empty_match_spec() = [] Activates/deactivates tracing by changing the current trace pattern. min detail level deactivates tracing of calls to et:trace_me/4,5 max detail level activates tracing of all calls to et:trace_me/4,5 integer(X) detail level activates tracing of all calls to et:trace_me/4,5 whose detail level argument is lesser than X . An empty match spec deactivates tracing of calls to et:trace_me/4,5 Other match specs activates tracing of calls to et:trace_me/4,5 accordingly with erlang:trace_pattern/2 . parse_event(Mod, ValidTraceData) -> false | true | {true, Event} Types Mod = module_name() | undefined <v>module_name() = atom() <v>ValidTraceData = erlang_trace_data() | record(event) erlang_trace_data() = {trace, Pid, Label, Info} | {trace, Pid, Label, Info, Extra} | {trace_ts, Pid, Label, Info, ReportedTS} | {trace_ts, Pid, Label, Info, Extra, ReportedTS} | {seq_trace, Label, Info} | {seq_trace, Label, Info, ReportedTS} | {drop, NumberOfDroppedItems} Transforms trace data and makes an event record out of it. See erlang:trace/3 for more info about the semantics of the trace data. An event record consists of the following fields: detail_level : Noise has a high level as opposed to essentials. trace_ts : Time when the trace was generated. Same as event_ts if omitted in trace data. event_ts : Time when the event record was created. from : From actor, such as sender of a message. to : To actor, such as receiver of message. label : Label intended to provide a brief event summary. contents : All nitty gritty details of the event. See et:trace_me/4 and et:trace_me/5 for details. Returns: {true, Event} : where Event is an #event{} record representing the trace data true : means that the trace data already is an event record and that it is valid as it is. No transformation is needed. false : means that the trace data is uninteresting and should be dropped Ericsson AB et 1.4.2 et_selector(3erl)

Check Out this Related Man Page

LWP::Debug(3)						User Contributed Perl Documentation					     LWP::Debug(3)

NAME
LWP::Debug - debug routines for the libwww-perl library SYNOPSIS
use LWP::Debug qw(+ -conns); # Used internally in the library LWP::Debug::trace('send()'); LWP::Debug::debug('url ok'); LWP::Debug::conns("read $n bytes: $data"); DESCRIPTION
LWP::Debug provides tracing facilities. The trace(), debug() and conns() function are called within the library and they log information at increasing levels of detail. Which level of detail is actually printed is controlled with the "level()" function. The following functions are available: level(...) The "level()" function controls the level of detail being logged. Passing '+' or '-' indicates full and no logging respectively. Inidi- vidual levels can switched on and of by passing the name of the level with a '+' or '-' prepended. The levels are: trace : trace function calls debug : print debug messages conns : show all data transfered over the connections The LWP::Debug module provide a special import() method that allows you to pass the level() arguments with initial use statement. If a use argument start with '+' or '-' then it is passed to the level function, else the name is exported as usual. The following two statements are thus equivalent (if you ignore that the second pollutes your namespace): use LWP::Debug qw(+); use LWP::Debug qw(level); level('+'); trace($msg) The "trace()" function is used for tracing function calls. The package and calling subroutine name is printed along with the passed argument. This should be called at the start of every major function. debug($msg) The "debug()" function is used for high-granularity reporting of state in functions. conns($msg) The "conns()" function is used to show data being transferred over the connections. This may generate considerable output. libwww-perl-5.65 1997-12-02 LWP::Debug(3)
Man Page