TBenchmark


class description - source file - inheritance tree

class TBenchmark : public TNamed


    public:
TBenchmark TBenchmark() TBenchmark TBenchmark(TBenchmark&) virtual void ~TBenchmark() TClass* Class() Int_t GetBench(const char* name) Float_t GetCpuTime(const char* name) Float_t GetRealTime(const char* name) virtual TClass* IsA() const virtual void Print(Option_t* name) virtual void Reset() virtual void Show(const char* name) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Start(const char* name) virtual void Stop(const char* name) virtual void Streamer(TBuffer& b) virtual void Summary()

Data Members

protected:
Int_t fNbench Number of active benchmarks Int_t fNmax Maximum number of benchmarks initialized TString* fNames Names of benchmarks Float_t* fRealTime Real Time Float_t* fCpuTime Cpu Time TStopwatch* fTimer Timers

Class Description


 This class is a ROOT utility to help benchmarking applications

  Examples of use of this class are given in the tutorials macros.


TBenchmark(): TNamed()
*-*-*-*-*-*-*-*-*-*-*Benchmark default constructor*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                  =============================

~TBenchmark()
*-*-*-*-*-*-*-*-*-*-*Benchmark default destructor*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                  ============================

Int_t GetBench(const char *name)
*-*-*-*-*-*-*-*-*-*-*Returns index of Benchmark name*-*-*-*-*-*-*-*
*-*                  ===============================

Float_t GetCpuTime(const char *name)
*-*-*-*-*-*-*-*-*-*-*Returns Cpu time used by Benchmark name*-*-*-*-*-*-*-*
*-*                  =======================================

Float_t GetRealTime(const char *name)
*-*-*-*-*-*-*-*-*-*-*Returns Realtime used by Benchmark name*-*-*-*-*-*-*-*
*-*                  =======================================

void Print(const char *name)
*-*-*-*-*-*-*-*-*-*-*Prints parameters of Benchmark name*-*-*-*-*-*-*-*-*-*
*-*                  ===================================

void Reset()
*-*-*-*-*-*-*-*-*-*-*-*-*-*Reset all Benchmarks*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                        ====================

void Show(const char *name)
*-*-*-*-*-*-*-*-*Stops Benchmark name and Prints results*-*-*-*-*-*-*-*-*-*
*-*              =======================================

void Start(const char *name)
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*Starts Benchmark name*-*-*-*-*-*-*-*-*-*
*-*                          =====================
*-*
*-*   An independent timer (see class TStopwatch) is started.
*-*   the name of the benchmark is entered into the list of benchmarks.
*-*   Benchmark can be stopped via TBenchmark::Stop
*-*   Results can be printed via TBenchmark::Print
*-*   TBenchmark::Show can be used to stop benchmark and print results.
*-*   If name is an already existing benchmark, existing parameters are reset.
*-*   A summary of all benchmarks can be seen via TBenchmark::Summary.
*-*
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-**-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

void Stop(const char *name)
*-*-*-*-*-*-*-*-*-*-*Terminates Benchmark name*-*-*-*-*-*-*-*-*-*-*-*
*-*                  =========================

void Summary()
*-*-*-*-*-*-*-*-*-*-*-*-*-*Prints a summary of all benchmarks*-*-*-*-*-*-*-*
*-*                        ==================================



Inline Functions


            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
         TBenchmark TBenchmark(TBenchmark&)


Last update: 2.00/12 28/08/98 08.58.16 by Valery Fine(fine@mail.cern.ch)
Copyright (c) 1995-1999, The ROOT System, All rights reserved. *


ROOT page - Class index - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.