ProcessMonitor

The Process Monitor utility allows to calculate cumulative CPU time and memory for a given PID and it’s process group. This is only implemented for linux /proc file systems but could feasibly be extended in the future.

class DIRAC.Core.Utilities.ProcessMonitor.ProcessMonitor

Bases: object

__init__()

Standard constructor

getCPUConsumed(pid)

Returns the CPU consumed for supported platforms when supplied a PID.

getCPUConsumedLinux(pid)

Returns the CPU consumed given a PID assuming a proc file system exists.

getMemoryConsumed(pid)

Returns the CPU consumed for supported platforms when supplied a PID.

getMemoryConsumedLinux(pid)

Get the current memory consumption

getResourceConsumedLinux(pid)

Returns the CPU consumed given a PID assuming a proc file system exists.