ROOT logo
ROOT » PROOF » PROOFBENCH » TProofBench

class TProofBench: public TObject


TProofBench

Steering class for PROOF benchmarks


Function Members (Methods)

public:
TProofBench(const TProofBench&)
TProofBench(const char* url, const char* outfile = "<default>", const char* proofopt = 0)
virtual~TProofBench()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
voidCloseOutFile()
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTObject::Copy(TObject& object) const
Int_tCopyDataSet(const char* dset, const char* dsetdst, const char* destdir)
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
static voidDrawCPU(const char* outfile, const char* opt = "std:")
static voidDrawDataSet(const char* outfile, const char* opt = "std:", const char* type = "mbs")
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
Bool_tGetDebug()
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
virtual const char*TObject::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
const char*GetOutFileName() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTObject::ls(Option_t* option = "") const
Int_tMakeDataSet(const char* dset = 0, Long64_t nevt = -1, const char* fnroot = "event", Bool_t regenerate = kFALSE)
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
Int_tOpenOutFile(Bool_t wrt = kFALSE, Bool_t verbose = kTRUE)
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
TProofBench&operator=(const TProofBench&)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTObject::Print(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
Int_tReleaseCache(const char* dset)
Int_tRemoveDataSet(const char* dset)
voidTObject::ResetBit(UInt_t f)
Int_tRunCPU(Long64_t nevents = -1, Int_t start = -1, Int_t stop = -1, Int_t step = -1)
Int_tRunCPUx(Long64_t nevents = -1, Int_t start = -1, Int_t stop = -1)
Int_tRunDataSet(const char* dset = "BenchDataSet", Int_t start = 1, Int_t stop = -1, Int_t step = 1)
Int_tRunDataSetx(const char* dset = "BenchDataSet", Int_t start = 1, Int_t stop = -1)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(ostream& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
voidSetCPUPar(const char* par)
voidSetCPUSel(const char* sel)
voidSetDataGetPar(const char* par)
voidSetDataGetSel(const char* sel)
voidSetDataPar(const char* par)
voidSetDataSel(const char* sel)
voidSetDebug(Bool_t debug = kTRUE)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
voidSetHistType(TPBHistType* histtype)
voidSetNHist(Int_t nh)
voidSetNTries(Int_t nt)
static voidTObject::SetObjectStat(Bool_t stat)
Int_tSetOutFile(const char* outfile, Bool_t verbose = kTRUE)
voidSetProofDS(TProof* p)
voidSetReadType(TPBReadType* readtype)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector& insp)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()

Data Members

protected:
TStringfCPUParList of par files to be loaded for CPU benchmarks
TStringfCPUSelSelector to be used for CPU benchmarks
TProofBenchDataSet*fDSInstance to handle datasets operations
TStringfDataGenParList of par files to be loaded to generate data for benchmarks
TStringfDataGenSelSelector to be used for generate data for benchmarks
TStringfDataParList of par files to be loaded for data benchmarks
TStringfDataSelSelector to be used for data benchmarks
TStringfDataSetName of the dataset
Bool_tfDebugDebug switch
TPBHistType*fHistTypeType of histograms for CPU runs
Int_tfNHistNumber of histograms to be created in default CPU runs
Int_tfNtriesNumber of times a measurement is repeated
TFile*fOutFileOutput file
TStringfOutFileNameName of the output file
TProof*fProofProof
TProof*fProofDSProof to be used for dataset actions
TPBReadType*fReadTypeType of read (partial, full)
TProofBenchRunCPU*fRunCPUInstance to run CPU scans
TProofBenchRunDataRead*fRunDSInstance to run data-read scans
private:
Bool_tfUnlinkOutfileWhether to remove empty output files

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TProofBench(const char* url, const char* outfile = "<default>", const char* proofopt = 0)
 Constructor: check PROOF and load selectors PAR
~TProofBench()
 Destructor
Int_t OpenOutFile(Bool_t wrt = kFALSE, Bool_t verbose = kTRUE)
 Set the otuput file
 Return 0 on success, -1 on error
Int_t SetOutFile(const char* outfile, Bool_t verbose = kTRUE)
 Set the output file
 Return 0 on success, -1 on error
Int_t RunCPU(Long64_t nevents = -1, Int_t start = -1, Int_t stop = -1, Int_t step = -1)
 Perform the CPU run
 Return 0 on success, -1 on error
Int_t RunCPUx(Long64_t nevents = -1, Int_t start = -1, Int_t stop = -1)
 Perform the CPU run scanning over the number of workers per node
 Return 0 on success, -1 on error
void DrawCPU(const char* outfile, const char* opt = "std:")
 Draw the CPU speedup plot.
  opt =    'std:'      draw standard evt/s plot
           'stdx:'     draw standard evt/s plot, 1 worker per node
           'norm:'     draw normalized plot
           'normx:'    draw normalized plot, 1 worker per node

Int_t RunDataSet(const char* dset = "BenchDataSet", Int_t start = 1, Int_t stop = -1, Int_t step = 1)
 Perform a test using dataset 'dset'
 Return 0 on success, -1 on error
 Open the file for the results
Int_t RunDataSetx(const char* dset = "BenchDataSet", Int_t start = 1, Int_t stop = -1)
 Perform a test using dataset 'dset' scanning over the number of workers
 per node.
 Return 0 on success, -1 on error
 Open the file for the results
void DrawDataSet(const char* outfile, const char* opt = "std:", const char* type = "mbs")
 Draw the CPU speedup plot.
  opt =    'std:'          Standard scaling plot
           'norm:'         Normalized scaling plot
           'stdx:'         Standard scaling plot, 1 worker per node
           'normx:'        Normalized scaling plot, 1 worker per node
 type =    'mbs'           MB/s scaling plots (default)
           'evts'          Event/s scaling plots

Int_t ReleaseCache(const char* dset)
 Release memory cache for dataset 'dset'
 Return 0 on success, -1 on error
Int_t RemoveDataSet(const char* dset)
 Physically remove the dataset 'dset', i.e. remove the dataset and the files
 it describes
 Return 0 on success, -1 on error
Int_t MakeDataSet(const char* dset = 0, Long64_t nevt = -1, const char* fnroot = "event", Bool_t regenerate = kFALSE)
 Create the largest dataset for the run.
 Defaults for
          dataset name, filename root
 are
          "BenchDataSet", "event"
 respectively.
 Default selecor is TSelEventGen. Use SetDataGenSel and SetDataGenOar to change it
 and to pass the list of PARs defining the alternative selector.
 These can be changed via dset, sel and fnroot, respectively.
 The argument 'nevt' controls the number of events per file (-1 for the default,
 which is 30000).
 Return 0 on success, -1 on error
Int_t CopyDataSet(const char* dset, const char* dsetdst, const char* destdir)
 Copy the files of dataset 'dset' to 'destdir' and create a new dataset named 'dsetdst'
 decribing them.
 Return 0 on success, -1 on error
void SetProofDS(TProof* p)
 Set the PROOF instance to be used for dataset operations, like releasing
 cache ...
 Use SetProofDS(0) to reset and using the default PROOF
TProofBench(const char* url, const char* outfile = "<default>", const char* proofopt = 0)
void CloseOutFile()
{ SetOutFile(0); }
const char * GetOutFileName() const
{ return fOutFileName; }
void SetNTries(Int_t nt)
{ if (nt > 0) fNtries = nt; }
void SetHistType(TPBHistType* histtype)
{ fHistType = histtype; }
void SetNHist(Int_t nh)
{ fNHist = nh; }
void SetReadType(TPBReadType* readtype)
{ fReadType = readtype; }
void SetCPUSel(const char* sel)
{ fCPUSel = sel; }
void SetCPUPar(const char* par)
{ fCPUPar = par; }
void SetDataSel(const char* sel)
{ fDataSel = sel; }
void SetDataPar(const char* par)
{ fDataPar = par; }
void SetDataGetSel(const char* sel)
{ fDataGenSel = sel; }
void SetDataGetPar(const char* par)
{ fDataGenPar = par; }
void SetDebug(Bool_t debug = kTRUE)
{ fDebug = debug; }
Bool_t GetDebug()
{ return fDebug; }