Grains.Support.Trace (Grains v1.7.0)
This is a wrapper around :erlang.trace/3 adapted to
trace the sending and receiving push/pull messages in grains.
The Trace server has to be started before it can be used,
either directly with Trace.start_link/1
or with
start_supervised!(Trace)
in tests.
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Callback implementation for GenServer.init/1
.
Trace pull
.
Trace push
.
Stop tracing pull
.
Stop tracing push
.
Link to this section Functions
Link to this function
child_spec(init_arg)
Returns a specification to start this module under a supervisor.
See Supervisor
.
Link to this function
init(_)
Callback implementation for GenServer.init/1
.
Link to this function
pull(sup, args)
Trace pull
.
Arguments
:target
: The shortname of the grain to-be-traced.:what
: One of:receive
or:send
, indicating if sending or receiving should be traced.:tracer
: (optional) tracer process, defaults to MODULE
Link to this function
push(sup, args)
Trace push
.
Arguments
:target
: The shortname of the grain to-be-traced.:what
: One of:receive
or:send
, indicating if sending or receiving should be traced.
Link to this function
start_link(args)
Link to this function
stop_pull(sup, args)
Stop tracing pull
.
Arguments
:target
: The shortname of the grain to-be-traced.:what
: One of:receive
or:send
, indicating if sending or receiving should be traced.:tracer
: (optional) tracer process, defaults to MODULE
Link to this function
stop_push(sup, args)
Stop tracing push
.
Arguments
:target
: The shortname of the grain to-be-traced.:what
: One of:receive
or:send
, indicating if sending or receiving should be traced.