pyfarm.agent.sysinfo.cpu module

CPU

Contains information about the cpu and its relation to the operating system such as load, processing times, etc.

pyfarm.agent.sysinfo.cpu.cpu_name()[source]

Returns the full name of the CPU installed in the system.

pyfarm.agent.sysinfo.cpu.total_cpus(logical=True)[source]

Returns the total number of cpus installed on the system.

Parameters:logical (bool) – If True the return the number of cores the system has. Setting this value to False will instead return the number of physical cpus present on the system.
pyfarm.agent.sysinfo.cpu.load(interval=1)[source]

Returns the load across all cpus value from zero to one. A value of 1.0 means the average load across all cpus is 100%.

pyfarm.agent.sysinfo.cpu.user_time()[source]

Returns the amount of time spent by the cpu in user space

pyfarm.agent.sysinfo.cpu.system_time()[source]

Returns the amount of time spent by the cpu in system space

pyfarm.agent.sysinfo.cpu.idle_time()[source]

Returns the amount of time spent by the cpu in idle space

pyfarm.agent.sysinfo.cpu.iowait()[source]

Returns the amount of time spent by the cpu waiting on io

Note

on platforms other than linux this will return None