Measure CPU load
mickel8 opened this issue · 0 comments
mickel8 commented
The task is to add a new metric - CPU load in time.
CPU load should be measured for each core every x
miliseconds where x
is configurable.
At the end, there should be average cpu load calculated, also for each core.
- - measure cpu load every
x
miliseconds for each cpu core - - calculate avg cpu load for each cpu core
- - make
x
configurable - - create one plot - cpu load x time
Useful links and tips:
- one way to measure cpu load in linux systems is to read
/proc/stat
file - support for Windows is not in the scope of this task
- https://github.com/mickel8/system_info
- https://www.erlang.org/doc/man/scheduler.html
- https://www.erlang.org/doc/man/erlang.html#statistics_scheduler_wall_time
- https://hamidreza-s.github.io/erlang/scheduling/real-time/preemptive/migration/2016/02/09/erlang-scheduler-details.html
- https://s3.us-east-2.amazonaws.com/ferd.erlang-in-anger/text.v1.1.0.pdf