Module xprof_tracer_handler

Gen server that tracks all calls to a particular function.

Behaviours: gen_server.

Description

Gen server that tracks all calls to a particular function. It registers itself localy under a atom that consists of MFA and xprof_monitor prefix. The same name is used to create public ETS table that holds entries with call time stats for every second.

Function Index

capture/3Starts capturing args and results from function calls that lasted longer than specified time threshold.
capture_stop/1
code_change/3
data/2Returns histogram data for seconds that occured after FromEpoch.
get_captured_data/2
handle_call/3
handle_cast/2
handle_info/2
init/1
start_link/1Starts new process registered localy.
terminate/2
trace_mfa_off/1

Function Details

capture/3

capture(MFA::xprof:mfa_id(), Threshold::non_neg_integer(), Limit::non_neg_integer()) -> {ok, non_neg_integer()}

Starts capturing args and results from function calls that lasted longer than specified time threshold.

capture_stop/1

capture_stop(MFA::xprof:mfa_id()) -> ok | {error, not_found}

code_change/3

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

data/2

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

Returns histogram data for seconds that occured after FromEpoch.

get_captured_data/2

get_captured_data(MFA::xprof:mfa_id(), Offset::non_neg_integer()) -> empty | {ok, {Id::non_neg_integer(), Threshold::non_neg_integer(), Limit::non_neg_integer(), OrigLimit::non_neg_integer()}, [any()]}

handle_call/3

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

handle_cast/2

handle_cast(Msg, State) -> any()

handle_info/2

handle_info(Info, State) -> any()

init/1

init(X1) -> any()

start_link/1

start_link(MFASpec::xprof:mfa_spec()) -> {ok, pid()}

Starts new process registered localy.

terminate/2

terminate(Reason, State) -> any()

trace_mfa_off/1

trace_mfa_off(MFA::xprof:mfa_id()) -> any()


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