Module xprof_tracer

Behaviours: gen_server.

Function Index

all_monitored/0Returns list of monitored functions.
code_change/3
data/2Returns metrics gathered for particular function.
demonitor/1Stops monitoring specified function calls.
handle_call/3
handle_cast/2
handle_info/2
init/1
monitor/1Starts monitoring specified function calls.
start_link/0Starts xprof tracer process.
terminate/2
trace/1Turns on or resumes tracing for a process specified by pid, all processes or processes that are spawned by specified spawner pid.
trace_status/0Returns current tracing state.

Function Details

all_monitored/0

all_monitored() -> [{xprof:mfa_id(), binary()}]

Returns list of monitored functions

code_change/3

code_change(OldVsn, State, Extra) -> any()

data/2

data(MFA::xprof:mfa_id(), TS::non_neg_integer()) -> [proplists:proplist()] | {error, not_found}

Returns metrics gathered for particular function.

demonitor/1

demonitor(MFA::xprof:mfa_id()) -> ok

Stops monitoring specified function calls.

handle_call/3

handle_call(Request, From, State) -> any()

handle_cast/2

handle_cast(Msg, State) -> any()

handle_info/2

handle_info(Msg, State) -> any()

init/1

init(X1) -> any()

monitor/1

monitor(Query::mfa() | string()) -> ok | {error, term()}

Starts monitoring specified function calls.

start_link/0

start_link() -> {ok, pid()}

Starts xprof tracer process.

terminate/2

terminate(Reason, State) -> any()

trace/1

trace(PidOrSpec::pid() | pause | resume | all | {spawner, pid()}) -> ok

Turns on or resumes tracing for a process specified by pid, all processes or processes that are spawned by specified spawner pid.

trace_status/0

trace_status() -> {all | {spawner, pid(), float()} | pid(), Status::paused | running | overflow | initialized}

Returns current tracing state.


Generated by EDoc, Dec 12 2017, 10:42:28.