Module erlperf_monitor

System monitor: scheduler, RAM, and benchmarks throughput samples.

Copyright © (C) 2019-2022, Maxim Fedorov

Behaviours: gen_server.

Description

System monitor: scheduler, RAM, and benchmarks throughput samples.

Data Types

monitor_sample()

monitor_sample() = #{time => integer(), sched_util => float(), dcpu => float(), dio => float(), processes => integer(), ports => integer(), ets => integer(), memory_total => non_neg_integer(), memory_processes => non_neg_integer(), memory_binary => non_neg_integer(), memory_ets => non_neg_integer(), jobs => [{Job::pid(), Cycles::non_neg_integer()}]}

Function Index

handle_call/3
handle_cast/2
handle_info/2
init/1
register/3 Registers job to monitor (ignoring failures, as monitor may not be running).
start/0 Starts the server (unlinked, not supervised, used only for isolated BEAM runs).
start_link/0 Starts the server.

Function Details

handle_call/3

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

handle_cast/2

handle_cast(X1, State) -> any()

handle_info/2

handle_info(X1, State) -> any()

init/1

init(X1) -> any()

register/3

register(Job::pid(), Handle::term(), Initial::non_neg_integer()) -> ok

Registers job to monitor (ignoring failures, as monitor may not be running).

start/0

start() -> {ok, Pid::pid()} | {error, Reason::term()}

Starts the server (unlinked, not supervised, used only for isolated BEAM runs)

start_link/0

start_link() -> {ok, Pid::pid()} | {error, Reason::term()}

Starts the server


Generated by EDoc