Skip to content

Commit

Permalink
ALIROOT-5530 Restore the processing statistics per event
Browse files Browse the repository at this point in the history
  • Loading branch information
hristov authored and hristov committed Jul 18, 2014
1 parent 9ab8141 commit ad4deea
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions STEER/STEER/AliReconstruction.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1974,9 +1974,9 @@ Bool_t AliReconstruction::ProcessEvent(Int_t iEvent)
static Long_t oldMres=0;
static Long_t oldMvir=0;
static Float_t oldCPU=0;
// static Long_t aveDMres=0;
// static Long_t aveDMvir=0;
// static Float_t aveDCPU=0;
static Long_t aveDMres=0;
static Long_t aveDMvir=0;
static Float_t aveDCPU=0;

AliCodeTimerAuto("",0);

Expand Down Expand Up @@ -2489,6 +2489,19 @@ Bool_t AliReconstruction::ProcessEvent(Int_t iEvent)
nbf,fMemCountESDHLT,fhlttree->GetTotBytes(),fhlttree->GetZipBytes()));
}

gSystem->GetProcInfo(&procInfo);
Long_t dMres=(procInfo.fMemResident-oldMres)/1024;
Long_t dMvir=(procInfo.fMemVirtual-oldMvir)/1024;
Float_t dCPU=procInfo.fCpuUser+procInfo.fCpuSys-oldCPU;
aveDMres+=(dMres-aveDMres)/(iEvent-fFirstEvent+1);
aveDMvir+=(dMvir-aveDMvir)/(iEvent-fFirstEvent+1);
aveDCPU+=(dCPU-aveDCPU)/(iEvent-fFirstEvent+1);
AliInfo(Form("======================= End Event %d: Res %ld(%3ld <%3ld>) Vir %ld(%3ld <%3ld>) CPU %5.2f <%5.2f> ===================",
iEvent, procInfo.fMemResident/1024, dMres, aveDMres, procInfo.fMemVirtual/1024, dMvir, aveDMvir, dCPU, aveDCPU));
oldMres=procInfo.fMemResident;
oldMvir=procInfo.fMemVirtual;
oldCPU=procInfo.fCpuUser+procInfo.fCpuSys;


return kTRUE;
}
Expand Down

0 comments on commit ad4deea

Please sign in to comment.