Skip to content

Latest commit

 

History

History
89 lines (48 loc) · 2.13 KB

metrics_process_tracker.md

File metadata and controls

89 lines (48 loc) · 2.13 KB

Module metrics_process_tracker

module to track processes associated to a counter.

Behaviours: gen_server.

Function Index

code_change/3
handle_call/3
handle_cast/2
handle_info/2
init/1
start_link/0
terminate/2
track/1track the number of processes for a name this add the current process.
track/2track the number of processes for a name.

Function Details

code_change/3

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

handle_call/3

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

handle_cast/2

handle_cast(X1, State) -> any()

handle_info/2

handle_info(X1, State) -> any()

init/1

init(X1) -> any()

start_link/0

start_link() -> any()

terminate/2

terminate(Reason, State) -> any()

track/1


track(Name::any()) -> ok | {error, term()}

track the number of processes for a name this add the current process

track/2


track(Name::any(), Pid::pid()) -> ok | {error, term()}

track the number of processes for a name