Module tracer

This module implements tracing support for function calls.

Version: $Rev: 359 $ $LastChangedDate: 2006-01-11 10:28:26 -0500 (Wed, 11 Jan 2006) $

Authors: Serge Aleynikov (serge@hq.idt.net).

Description

This module implements tracing support for function calls. It is similar to dbg:c/3, however it can return the trace as its result.

Function Index

print_trace/1
t/3Call M:F function with Args arguments, and return a tuple {Result, Trace} containing call trace.
t/4Call M:F function with Args arguments, and return a tuple {Result, Trace} containing call trace.
tf/3Trace a function call and return trace result.
tf/4Trace a function call and return trace result.
tp/3Trace a function call and print trace result to the console.
tp/4Trace a function call and print trace result to the console.

Function Details

print_trace/1

print_trace(Trace) -> term()

t/3

t(M::atom(), F::atom(), Args::list()) -> {Result::term(), Trace::list()}

Call M:F function with Args arguments, and return a tuple {Result, Trace} containing call trace.

t/4

t(M::atom(), F::atom(), Args::list(), Flags::list()) -> {Result::term(), Trace::list()}

Call M:F function with Args arguments, and return a tuple {Result, Trace} containing call trace.

tf/3

tf(M, F, Args) -> TraceList::term()

Trace a function call and return trace result.

tf/4

tf(M, F, Args, Flags) -> TraceList::term()

Trace a function call and return trace result. See //kernel/erlang:trace/3 for description of Flags.

tp/3

tp(M, F, Args) -> Result::term()

Trace a function call and print trace result to the console.

tp/4

tp(M, F, Args, Flags::FlagList) -> Result::term()

Trace a function call and print trace result to the console. See //kernel/erlang:trace/3 for description of Flags.