22 in.open(inputFile.Data());
24 Int_t vmPeak, vmSize, vmLck, vmHWM, vmRSS, vmData, vmStk, vmExe, vmLib, vmPTE;
25 Int_t time, timeZero, filesize;
29 Bool_t firstTime = kTRUE;
31 TString outputFile(inputFile);
32 outputFile.ReplaceAll(
".txt",
".root");
33 TFile *f = TFile::Open(outputFile,
"RECREATE");
34 TNtuple *ntuple =
new TNtuple(
"ntuple",
35 "data from ascii file",
36 "time:vmPeak:vmSize:vmLck:vmHWM:vmRSS:vmData:vmStk:vmExe:vmLib:vmPTE:filesize:cpu");
39 in >> dummy[0] >> dummy[1] >> dummy[2] >> dummy[3] >> dummy[4] >> dummy[5] >> dummy[6] >> dummy[7] >> dummy[8]
40 >> dummy[9] >> dummy[10] >> dummy[11] >> dummy[12] >> dummy[13];
43 in >> dummy[0] >> time >> vmPeak >> dummy[1] >> vmSize >> dummy[2] >> vmLck >> dummy[3] >> vmHWM >> dummy[4]
44 >> vmRSS >> dummy[5] >> vmData >> dummy[6] >> vmStk >> dummy[7] >> vmExe >> dummy[8] >> vmLib >> dummy[9]
45 >> vmPTE >> dummy[10] >> filesize >> cpu;
57 ntuple->Fill(time, vmPeak, vmSize, vmLck, vmHWM, vmRSS, vmData, vmStk, vmExe, vmLib, vmPTE, filesize, cpu);
60 printf(
" found %d measurements\n", nlines);
void Read_Memory_File(TString inputFile, Int_t Interval)