Module eflambe_server

E flambe server stores state for all traces that have been started.

Behaviours: gen_server.

Description

E flambe server stores state for all traces that have been started. When No traces remain the server will shut down automatically.

Data Types

from()

from() = {pid(), Tag::term()}

state()

state() = #state{traces = [trace()]}

trace()

trace() = #trace{id = any(), max_calls = integer(), calls = integer(), running = boolean(), tracer = pid(), options = list()}

Function Index

handle_call/3
handle_cast/2
handle_info/2
init/1
start_link/0 Starts the server.
start_trace/3
stop_trace/1

Function Details

handle_call/3

handle_call(Request::any(), From::from(), State::state()) -> {reply, Reply::any(), state()} | {reply, Reply::any(), state(), timeout()}

handle_cast/2

handle_cast(Msg::any(), State::state()) -> {noreply, state()} | {noreply, state(), timeout()} | {stop, Reason::any(), state()}

handle_info/2

handle_info(Info::any(), State::state()) -> {noreply, state()} | {noreply, state(), timeout()} | {stop, Reason::any(), state()}

init/1

init(Args::list()) -> {ok, state()}

start_link/0

start_link() -> {ok, pid()} | ignore | {error, Error::any()}

Starts the server

start_trace/3

start_trace(Id::reference(), MaxCalls::integer(), Options::list()) -> {ok, reference(), boolean(), pid()}

stop_trace/1

stop_trace(Id::reference()) -> {ok, boolean()}


Generated by EDoc