Module process

Module process 

Source

Structs§

Process
ProcessFilter
ProcessStat
ProcessStatus
ProcessTimeStat

Enums§

ProcessState

Functions§

get_process_stat
Get the stat of a specific process found by ID by reading the /proc/PID/stat file and the /proc/PID/statm file.
get_process_status
Get the status of a specific process found by ID by reading the /proc/PID/status file.
get_process_time_stat
Get the time stat of a specific process found by ID by reading the /proc/PID/stat file.
get_process_with_stat
Get information of a specific process found by ID by reading files in the /proc/PID folder.
get_processes_with_cpu_utilization_in_percentage
Get process information by reading files in the /proc/PID folders and measure the cpu utilization in percentage within a specific time interval. If the number it returns is 1.0, means 100%.
get_processes_with_stat
Get process information by reading files in the /proc/PID folders.