dm_system_load_average Function

public function dm_system_load_average(avg1, avg5, avg15) result(rc)

Uses

  • proc~~dm_system_load_average~~UsesGraph proc~dm_system_load_average dm_system_load_average module~dm_freebsd dm_freebsd proc~dm_system_load_average->module~dm_freebsd module~dm_linux dm_linux proc~dm_system_load_average->module~dm_linux module~dm_error dm_error module~dm_freebsd->module~dm_error module~dm_kind dm_kind module~dm_freebsd->module~dm_kind module~dm_pipe dm_pipe module~dm_freebsd->module~dm_pipe module~dm_platform dm_platform module~dm_freebsd->module~dm_platform module~dm_linux->module~dm_error module~dm_linux->module~dm_kind module~dm_linux->module~dm_pipe module~dm_linux->module~dm_platform module~dm_error->module~dm_kind module~dm_ascii dm_ascii module~dm_error->module~dm_ascii iso_fortran_env iso_fortran_env module~dm_kind->iso_fortran_env module~dm_pipe->module~dm_error module~dm_pipe->module~dm_kind unix unix module~dm_pipe->unix

Returns load averages from uptime(1) (FreeBSD) or /proc/loadavg (Linux). On error, the arguments will be set to 0.0.

The function returns the following error codes:

  • E_EMPTY if result is empty.
  • E_FORMAT if file or output format is unexpected.
  • E_IO if opening file failed.
  • E_NOT_FOUND if file or variable does not exist.
  • E_PLATFORM if system type is unsupported.
  • E_READ if reading from file or pipe failed.
  • E_SYSTEM if system call failed.

Arguments

Type IntentOptional Attributes Name
real, intent(out), optional :: avg1

Average, 1 min.

real, intent(out), optional :: avg5

Average, 5 min.

real, intent(out), optional :: avg15

Average, 15 min.

Return Value integer


Calls

proc~~dm_system_load_average~~CallsGraph proc~dm_system_load_average dm_system_load_average proc~dm_freebsd_uptime_load_average dm_freebsd_uptime_load_average proc~dm_system_load_average->proc~dm_freebsd_uptime_load_average proc~dm_linux_procfs_load_average dm_linux_procfs_load_average proc~dm_system_load_average->proc~dm_linux_procfs_load_average proc~dm_is_error dm_is_error proc~dm_freebsd_uptime_load_average->proc~dm_is_error proc~dm_pipe_execute dm_pipe_execute proc~dm_freebsd_uptime_load_average->proc~dm_pipe_execute proc~dm_linux_procfs_load_average->proc~dm_is_error proc~dm_pipe_execute->proc~dm_is_error proc~dm_pipe_close dm_pipe_close proc~dm_pipe_execute->proc~dm_pipe_close proc~dm_pipe_open dm_pipe_open proc~dm_pipe_execute->proc~dm_pipe_open proc~dm_pipe_read dm_pipe_read proc~dm_pipe_execute->proc~dm_pipe_read c_pclose c_pclose proc~dm_pipe_close->c_pclose proc~dm_pipe_is_connected dm_pipe_is_connected proc~dm_pipe_close->proc~dm_pipe_is_connected c_popen c_popen proc~dm_pipe_open->c_popen proc~dm_f_c_string dm_f_c_string proc~dm_pipe_open->proc~dm_f_c_string proc~dm_pipe_open->proc~dm_pipe_is_connected c_fread c_fread proc~dm_pipe_read->c_fread proc~dm_pipe_read->proc~dm_pipe_is_connected