View Source erlperf_monitor (erlperf v2.1.0)

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

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

Link to this function

handle_call(Request, From, State)

View Source
Link to this function

register(Job, Handle, Initial)

View Source
-spec register(pid(), term(), non_neg_integer()) -> ok.
Registers job to monitor (ignoring failures, as monitor may not be running).
-spec start() -> {ok, Pid :: pid()} | {error, Reason :: term()}.
Starts the server (unlinked, not supervised, used only for isolated BEAM runs)
-spec start_link() -> {ok, Pid :: pid()} | {error, Reason :: term()}.
Starts the server
-spec unregister(pid()) -> ok.
Removes the job from monitoring (e.g. job has no workers running)