View Source erlperf_monitor (erlperf v2.1.0)
Link to this section Summary
Functions
Registers job to monitor (ignoring failures, as monitor may not be running).
Starts the server (unlinked, not supervised, used only for isolated BEAM runs)
Starts the server
Removes the job from monitoring (e.g. job has no workers running)
Link to this section Types
-type 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()}]}.
Link to this section Functions
-spec register(pid(), term(), non_neg_integer()) -> ok.
-spec start() -> {ok, Pid :: pid()} | {error, Reason :: term()}.
-spec start_link() -> {ok, Pid :: pid()} | {error, Reason :: term()}.
-spec unregister(pid()) -> ok.