  | 
  
    ATLAS Offline Software
    
   | 
 
 
 
 
Go to the documentation of this file.
    5 #ifndef XAODCORE_TOOLS_PERFSTATS_H 
    6 #define XAODCORE_TOOLS_PERFSTATS_H 
    9 #include <TVirtualPerfStats.h> 
   54       virtual void PacketEvent( 
const char *slave, 
const char *slavename,
 
   56                                 ::Long64_t eventsprocessed,
 
   57                                 ::Double_t latency, ::Double_t proctime,
 
   58                                 ::Double_t cputime, ::Long64_t bytesRead );
 
   60       virtual void FileEvent( 
const char *slave, 
const char *slavename,
 
   61                               const char *nodename, 
const char *
filename,
 
   71                                ::Double_t 
start, ::Int_t complen,
 
   74       virtual void RateEvent( ::Double_t proctime, ::Double_t deltatime,
 
   75                               ::Long64_t eventsprocessed,
 
   76                               ::Long64_t bytesRead );
 
   91       virtual void SetLoaded(
size_t bi, 
size_t basketNumber);
 
   99       virtual void SetMissed(
size_t bi, 
size_t basketNumber);
 
  102       virtual void SetUsed(TBranch *
b, 
size_t basketNumber);
 
  103       virtual void SetUsed(
size_t bi, 
size_t basketNumber);
 
  116 #if ROOT_VERSION_CODE >= ROOT_VERSION( 6, 23, 2 ) 
  119 #endif // ROOT version 
  126       typedef std::lock_guard<std::mutex> 
lock_t;
 
  150 #endif // XAODCORE_TOOLS_PERFSTATS_H 
  
PerfStats()
The constructor is protected, as it's a singleton.
 
virtual void UnzipEvent(::TObject *tree, ::Long64_t pos, ::Double_t start, ::Int_t complen, ::Int_t objlen)
Function called in general when a file unzipping operation happens.
 
std::lock_guard< std::mutex > lock_t
 
virtual void SetUsed(size_t bi, size_t basketNumber)
 
void start(bool clear=true)
Start the statistics collection.
 
virtual void UpdateBranchIndices(TObjArray *branches)
Update the fBranchIndexCache collection to match the current TTree given the ordered list of branch n...
 
bool m_treeWarningPrinted
Flag showing whether some information message has already been printed.
 
virtual void FileOpenEvent(::TFile *file, const char *filename, ::Double_t start)
Function called by PROOF when a file is opened.
 
virtual void FileEvent(const char *slave, const char *slavename, const char *nodename, const char *filename, ::Bool_t isStart)
PROOF specific function, not implemented here.
 
virtual void PrintBasketInfo(Option_t *option="") const
Print the TTree basket read caching statistics.
 
virtual void SetLoadedMiss(size_t bi, size_t basketNumber)
 
virtual ::Long64_t GetNumEvents() const
Function used by PROOF to set the number of processed events correctly.
 
virtual void FileReadEvent(::TFile *file, ::Int_t len, ::Double_t start)
Function called in general when a file reading operation happens.
 
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
 
Class for collecting information about the xAOD file access pattern.
 
virtual void SetLoaded(size_t bi, size_t basketNumber)
 
~PerfStats()
Destructor, sometimes called by PROOF.
 
static PerfStats *s_instance ATLAS_THREAD_SAFE
The single instance of the object.
 
virtual void PacketEvent(const char *slave, const char *slavename, const char *filename, ::Long64_t eventsprocessed, ::Double_t latency, ::Double_t proctime, ::Double_t cputime, ::Long64_t bytesRead)
PROOF specific function, not implemented here.
 
virtual void SetUsed(TBranch *b, size_t basketNumber)
Mark a basket as accessed.
 
virtual void SetLoadedMiss(TBranch *b, size_t basketNumber)
Increase by 1 the counter of how many times a basket was cached on access.
 
::TFile * m_file
The currently open xAOD file.
 
virtual void SimpleEvent(EEventType type)
Generic function called when a specified event happens.
 
virtual void RateEvent(::Double_t proctime, ::Double_t deltatime, ::Long64_t eventsprocessed, ::Long64_t bytesRead)
PROOF specific function, not implemented here.
 
virtual void SetMissed(TBranch *b, size_t basketNumber)
Increase count (by 1) of not cached basket reads.
 
virtual ::Long64_t GetBytesRead() const
Function used by PROOF to set the read bytes correctly on the master.
 
virtual void SetLoaded(TBranch *b, size_t basketNumber)
Increase by 1 the counter of how many times a basket was cached.
 
static std::mutex s_mutex
Lock controlling access to the singleton.
 
virtual void SetBytesRead(::Long64_t num)
Function used by PROOF to set the read bytes correctly on the master.
 
static PerfStats & instance()
Function accessing the singleton instance.
 
virtual void SetMissed(size_t bi, size_t basketNumber)
 
bool m_running
Flag showing whether the statistic collection is ongoing or not.
 
::TVirtualPerfStats * m_otherPerfStats
Another performance monitoring object.
 
void stop()
Stop the statistics collection.
 
virtual void SetNumEvents(::Long64_t num)
Function used by PROOF to set the number of processed events correctly.
 
::TTree * m_tree
The tree we're currently investigating.
 
::Double_t m_startTime
Time when the statistics collection was started.
 
Define macros for attributes used to control the static checker.
 
virtual void SetFile(TFile *file)
Function letting us know that a new file was opened.