30int main(
int argc,
char **argv)
43 JParser<> zap(
"Auxiliary program to monitor memory and CPU usage of process.");
53 catch(
const exception &error) {
60 const char QUIT =
'q';
68 for (
int i = 0; ;++i) {
72 pid = getPID(
shell, process.c_str());
76 catch(
const exception& error) {
93 FATAL(
"Invalid process identifier " << pid <<
endl);
96 TH1D h0(
"h0",
NULL, 101,-0.5, 100.5);
97 TH1D h1(
"h1",
NULL, 1001,-0.5, 1000.5);
105 for (
int i = 0; ;++i) {
109 const double t1 =
double (getLocalTime() - t0) * 1.0e-6;
110 const double mem = getMemoryUsage(
shell, pid);
111 const double cpu = getCpuUsage (
shell, pid);
130 catch(
const exception& error) {
136 TGraph
g0(X.size(), X.data(), Y.data());
137 TGraph
g1(X.size(), X.data(), Z.data());
Keyboard settings for unbuffered input.
General purpose messaging.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
I/O formatting auxiliaries.
#define MAKE_CSTRING(A)
Make C-string.
int main(int argc, char **argv)
Double_t g1(const Double_t x)
Function.
Shell interaction via I/O streams.
Template definition of a multi-dimensional oscillation probability interpolation table.
Utility class to parse command line options.
Enable unbuffered terminal input.
The JShell clas can be used to interact with the shell via I/O streams.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary data structure for floating point format specification.