Gaudi Framework, version v21r6

Home   Generated: 11 Nov 2009

monitor_utils.cpp File Reference


Detailed Description

This file contains the implementations of some functions used for obtaining monitoring information.

Definition in file monitor_utils.cpp.

#include "ApMon.h"
#include "monitor_utils.h"
#include "proc_utils.h"
#include "utils.h"
#include "mon_constants.h"

Include dependency graph for monitor_utils.cpp:

Go to the source code of this file.

Functions

long * apmon_mon_utils::getChildren (long pid, int &nChildren) throw (runtime_error)
 Determines all the descendants of a given process.
void apmon_mon_utils::readJobInfo (long pid, PsInfo &info) throw (runtime_error)
 Obtains monitoring information for a given job and all its sub-jobs (descendant processes) with the aid of the ps command.
long apmon_mon_utils::parsePSTime (char *s)
 Function that parses a time formatted like "days-hours:min:sec" and returns the corresponding number of seconds.
void apmon_mon_utils::readJobDiskUsage (MonitoredJob job, JobDirInfo &info) throw (runtime_error)
 If there is an work directory defined, then compute the used space in that directory and the free disk space on the partition to which that directory belongs.


Generated at Wed Nov 11 16:29:13 2009 for Gaudi Framework, version v21r6 by Doxygen version 1.5.6 written by Dimitri van Heesch, © 1997-2004