12 static unsigned int kTick = 2000;
15 TGGroupFrame(w,
"Monitoring Status", kHorizontalFrame)
18 "Producer: ------ pid:------ s/utime=------/------ rsize=------k" 19 " Run/Subrun/Event=------/----/---------");
21 this->AddFrame(
fProdLabel,
new TGLayoutHints(kLHintsLeft|kLHintsTop, 16, 16, 2, 2));
23 fDateLabel =
new TGLabel(
this,
"--------------------------");
25 this->AddFrame(
fDateLabel,
new TGLayoutHints(kLHintsRight|kLHintsTop, 16, 16, 2, 2));
50 bool is_root = str.find(
".root")<str.length();
51 bool is_shm = str.find(
".shm")< str.length();
53 if (is_root && is_shm) abort();
65 long stime, utime, cpu, rsize;
67 f.
GetStatus(snm, &r, &s, &e, &pid, &stime, &utime, &cpu, &rsize, &tp);
71 "Producer: %6s pid:%6d s/utime=%lu/%lu rsize=%6.2fk" 72 " Run/Subrun/Event=%d/%d/%d",
73 snm.c_str(),
pid,
stime, utime, rsize/1024.0,
77 time_t
t =
time(NULL);
79 sprintf(datext,
"UTC: %s", asctime(gmtime(&t)));
80 for (
unsigned int i=0;
i<1024; ++
i) {
81 if (datext[
i]==
'\n') datext[
i] =
'\0';
void GetStatus(std::string &nm, unsigned int *run, unsigned int *subrun, unsigned int *event, pid_t *pid, long *stime, long *utime, long *cpu, long *rsize, time_t *t)
Get the histogram server status.
::xsd::cxx::tree::time< char, simple_type > time
static GUIModel & Instance()
std::string fHistogramSource
const GUIModelData & Data() const
Online Monitoring package header.