KaliVeda
Toolkit for HIC analysis
|
#include <KVLogReader.h>
Public Member Functions | |
KVLogReader () | |
virtual | ~ KVLogReader () |
Double_t | GetCPUratio () const |
calculate ratio of used CPU to requested CPU More... | |
Double_t | GetCPUrequest () const |
Double_t | GetCPUused () const |
const Char_t * | GetJobname () const |
Double_t | GetMEMrequest () const |
Double_t | GetMEMused () const |
Int_t | GetRunNumber () const |
try to get run number from jobname using format string fFMT More... | |
Double_t | GetSCRATCHrequest () const |
Double_t | GetSCRATCHused () const |
const Char_t * | GetStatus () const |
virtual Bool_t | Incomplete () const |
Bool_t | JobOK () const |
Bool_t | Killed () const |
void | ReadFile (const Char_t *fname) |
Open file 'fname' and read contents. More... | |
virtual void | Reset () |
reset informations read from file More... | |
Bool_t | SegFault () const |
void | SetNameFormat (const Char_t *fmt) |
Private Member Functions | |
virtual Int_t | GetByteMultiplier (const KVString &unit)=0 |
virtual void | ReadCPU (const KVString &line)=0 |
void | ReadJobname (const KVString &line) |
virtual void | ReadLine (const KVString &line, Bool_t &) |
virtual void | ReadMemUsed (const KVString &line)=0 |
virtual void | ReadScratchUsed (const KVString &line)=0 |
virtual void | ReadStatus (const KVString &line)=0 |
virtual Double_t | ReadStorage (const KVString &stor)=0 |
void | ReadStorageReq (const KVString &line) |
Private Attributes | |
Double_t | fCPUreq |
requested CPU time in seconds More... | |
Double_t | fCPUused |
normalized used CPU time in seconds More... | |
KVString | fFMT |
format string used to extract run number from job name More... | |
Bool_t | fGotRequests |
set true when disk & memory request has been read More... | |
Bool_t | fGotStatus |
set true when end of job infos have been read More... | |
KVString | fJobname |
name of job More... | |
Double_t | fMemKB |
used memory in KB More... | |
Double_t | fMEMreq |
requested memory (VIRTUAL STORAGE) in KB More... | |
Bool_t | fOK |
job OK or not ? More... | |
Double_t | fScratchKB |
used disk space in KB More... | |
Double_t | fSCRreq |
requested scratch disk space in KB More... | |
KVString | fStatus |
status string More... | |
KVLogReader::KVLogReader | ( | ) |
Definition at line 17 of file KVLogReader.cpp.
|
inlinevirtual |
Definition at line 46 of file KVLogReader.h.
Implemented in KVGELogReader.
Double_t KVLogReader::GetCPUratio | ( | ) | const |
calculate ratio of used CPU to requested CPU
Definition at line 113 of file KVLogReader.cpp.
|
inline |
Definition at line 62 of file KVLogReader.h.
|
inline |
Definition at line 58 of file KVLogReader.h.
|
inline |
Definition at line 87 of file KVLogReader.h.
|
inline |
Definition at line 70 of file KVLogReader.h.
|
inline |
Definition at line 79 of file KVLogReader.h.
Int_t KVLogReader::GetRunNumber | ( | ) | const |
try to get run number from jobname using format string fFMT
Definition at line 162 of file KVLogReader.cpp.
|
inline |
Definition at line 66 of file KVLogReader.h.
|
inline |
Definition at line 75 of file KVLogReader.h.
|
inline |
Definition at line 83 of file KVLogReader.h.
|
virtual |
job considered incomplete if
Reimplemented in KVGELogReader.
Definition at line 181 of file KVLogReader.cpp.
|
inline |
Definition at line 93 of file KVLogReader.h.
|
inline |
Definition at line 98 of file KVLogReader.h.
Implemented in KVGELogReader.
Open file 'fname' and read contents.
Definition at line 43 of file KVLogReader.cpp.
read line of type "* Jobname: run4049 *" with name of job.
Definition at line 149 of file KVLogReader.cpp.
analyse contents of line read from log file
if line contains "segmentation" then we put ok=kFALSE to stop reading file
status will equal the contents of the current line
Reimplemented in KVGELogReader.
Definition at line 74 of file KVLogReader.cpp.
Implemented in KVGELogReader.
Implemented in KVGELogReader.
Implemented in KVGELogReader.
Implemented in KVGELogReader.
Read lines "DISK_REQ: 3GB" and "MEM_REQ: 150MB" and fill corresponding variable with appropriate value
Definition at line 125 of file KVLogReader.cpp.
reset informations read from file
Reimplemented in KVGELogReader.
Definition at line 28 of file KVLogReader.cpp.
|
inline |
Definition at line 102 of file KVLogReader.h.
Definition at line 53 of file KVLogReader.h.
|
private |
requested CPU time in seconds
Definition at line 22 of file KVLogReader.h.
|
private |
normalized used CPU time in seconds
Definition at line 21 of file KVLogReader.h.
|
private |
format string used to extract run number from job name
Definition at line 19 of file KVLogReader.h.
|
private |
set true when disk & memory request has been read
Definition at line 29 of file KVLogReader.h.
|
private |
set true when end of job infos have been read
Definition at line 30 of file KVLogReader.h.
|
private |
name of job
Definition at line 20 of file KVLogReader.h.
|
private |
used memory in KB
Definition at line 26 of file KVLogReader.h.
|
private |
requested memory (VIRTUAL STORAGE) in KB
Definition at line 23 of file KVLogReader.h.
|
private |
job OK or not ?
Definition at line 28 of file KVLogReader.h.
|
private |
used disk space in KB
Definition at line 25 of file KVLogReader.h.
|
private |
requested scratch disk space in KB
Definition at line 24 of file KVLogReader.h.
|
private |
status string
Definition at line 27 of file KVLogReader.h.