AliRoot Core  3dc7879 (3dc7879)
PlotSys.C File Reference

Make sys watch default plots. More...

#include "TMath.h"
#include "TH1F.h"
#include "TH2F.h"
#include "TTree.h"
#include "TFile.h"
#include "TCut.h"
#include "TStyle.h"
#include "AliSysInfo.h"
Include dependency graph for PlotSys.C:

Go to the source code of this file.

Functions

TCut cutVM ("cutVM","deltaVM>10")
 
TCut cutDT ("cutDT","deltaT>2")
 
Float_t TopUsage (TTree *tree, const char *exp, const char *cut, Int_t order)
 
void TopVM ()
 
void TopCPU ()
 
void TopVMDetector ()
 
void TopCPUDetector ()
 
void PInit (const char *log="syswatch.log", const char *out="syswatch.root")
 
void MakePlots (const char *log="syswatch.log", const char *out="syswatch.root", Int_t top=10)
 

Variables

TObject * htemp
 
TTree * tree =0
 
TFile * fout =0
 
Int_t ctop =10
 

Detailed Description

Make sys watch default plots.

Author
maria.nosp@m.n.iv.nosp@m.anov@.nosp@m.cern.nosp@m..ch See $ALICE_ROOT/STEER/AliSysInfo.cxx. Input - syswatch.log - text log file created by process to be monitored Output - syswatch.root - root files with default histograms Number of top violators - only top consumer displayed

Default histogram:

TOP violateors - CPU and Virtual memory usage Detector reports - CPU and Virtual memory usage per detector

Usage example:

.x ~/rootlogon.C
gROOT->LoadMacro("$ALICE_ROOT/macros/PlotSys.C+");
MakePlots("syswatch.log","syswatch.root",10);
TFile f("syswatch.root");
TBrowser b;

Definition in file PlotSys.C.

Function Documentation

TCut cutDT ( "cutDT"  ,
deltaT,
2"   
)

Referenced by TopCPU().

TCut cutVM ( "cutVM"  ,
deltaVM,
10"   
)

Referenced by TopVM().

void MakePlots ( const char *  log = "syswatch.log",
const char *  out = "syswatch.root",
Int_t  top = 10 
)

Definition at line 60 of file PlotSys.C.

void PInit ( const char *  log = "syswatch.log",
const char *  out = "syswatch.root" 
)

Set Input output

Definition at line 51 of file PlotSys.C.

Referenced by MakePlots().

void TopCPU ( )

select top user of CPU MakeReport - ASCII and histogram

Definition at line 139 of file PlotSys.C.

Referenced by MakePlots().

void TopCPUDetector ( )

Draw usage of CPU

Definition at line 212 of file PlotSys.C.

Referenced by MakePlots().

Float_t TopUsage ( TTree *  tree,
const char *  exp,
const char *  cut,
Int_t  order 
)

Find value for given order Used to select top violator

Definition at line 248 of file PlotSys.C.

Referenced by TopCPU(), TopCPUDetector(), TopVM(), and TopVMDetector().

void TopVM ( )

select top user of virtual Memory MakeReport - ASCII and histogram

Definition at line 90 of file PlotSys.C.

Referenced by MakePlots().

void TopVMDetector ( )

Draw usage of VM

Definition at line 166 of file PlotSys.C.

Referenced by MakePlots().

Variable Documentation

Int_t ctop =10

Definition at line 42 of file PlotSys.C.

Referenced by MakePlots(), TopCPU(), TopCPUDetector(), TopVM(), and TopVMDetector().

TTree* tree =0

Definition at line 38 of file PlotSys.C.

Referenced by PInit(), TopCPU(), TopCPUDetector(), TopVM(), and TopVMDetector().