ATLAS Offline Software
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
ManagedMonitorToolBase::Imp Class Reference
Collaboration diagram for ManagedMonitorToolBase::Imp:

Public Member Functions

 Imp (ManagedMonitorToolBase *tc)
 
 ~Imp ()
 
void benchPreBookHistograms ()
 
void benchPostBookHistograms ()
 
void benchPreFillHistograms ()
 
void benchPostFillHistograms ()
 
void benchPreProcHistograms ()
 
void benchPostProcHistograms ()
 
void benchFinalReport ()
 
void benchReset ()
 

Public Attributes

ManagedMonitorToolBasem_theclass
 
bool m_warnAboutMissingInitialize
 
bool m_doResourceMon
 
AthMonBench m_bench_tmp
 
AthMonBench m_bench_book
 
AthMonBench m_bench_fillfirst
 
AthMonBench m_bench_fillall
 
AthMonBench m_bench_filllast
 
AthMonBench m_bench_proc
 
AthMonBench m_bench_total
 
unsigned m_benchNFillAfterbook
 

Static Public Attributes

static std::atomic< ISvcLocator * > s_svcLocator {nullptr}
 

Detailed Description

Definition at line 36 of file ManagedMonitorToolBase.cxx.

Constructor & Destructor Documentation

◆ Imp()

ManagedMonitorToolBase::Imp::Imp ( ManagedMonitorToolBase tc)
inline

Definition at line 39 of file ManagedMonitorToolBase.cxx.

39  : m_theclass(tc),
41  m_doResourceMon(false),

◆ ~Imp()

ManagedMonitorToolBase::Imp::~Imp ( )
inline

Definition at line 43 of file ManagedMonitorToolBase.cxx.

43 {}

Member Function Documentation

◆ benchFinalReport()

void ManagedMonitorToolBase::Imp::benchFinalReport ( )

Definition at line 156 of file ManagedMonitorToolBase.cxx.

157 {
158  if (!m_doResourceMon)
159  return;
160  m_theclass->msg(AthMonBench::s_resourceMonThreshold) << "ResourceSummary --> Result of dedicated mon-tool resource monitoring:"<<endmsg;
161  m_theclass->msg(AthMonBench::s_resourceMonThreshold) << "ResourceSummary --> Book : "<<m_bench_book << endmsg;
162  m_theclass->msg(AthMonBench::s_resourceMonThreshold) << "ResourceSummary --> First Fill : "<<m_bench_fillfirst << endmsg;
163  m_theclass->msg(AthMonBench::s_resourceMonThreshold) << "ResourceSummary --> Last Fill : "<<m_bench_filllast << endmsg;
164  m_theclass->msg(AthMonBench::s_resourceMonThreshold) << "ResourceSummary --> Other Fills : "<<m_bench_fillall << endmsg;
165  m_theclass->msg(AthMonBench::s_resourceMonThreshold) << "ResourceSummary --> Proc : "<<m_bench_proc << endmsg;
166  m_bench_total.setUnitCount();//to avoid dividing by number of measurements
167  m_theclass->msg(AthMonBench::s_resourceMonThreshold) << "ResourceSummary --> Grand Total : "<<m_bench_total << endmsg;
168  //NB: Needs total also!
169 }

◆ benchPostBookHistograms()

void ManagedMonitorToolBase::Imp::benchPostBookHistograms ( )

Definition at line 84 of file ManagedMonitorToolBase.cxx.

85 {
86  if (!m_doResourceMon)
87  return;
91 }

◆ benchPostFillHistograms()

void ManagedMonitorToolBase::Imp::benchPostFillHistograms ( )

Definition at line 103 of file ManagedMonitorToolBase.cxx.

104 {
105  if (!m_doResourceMon)
106  return;
110  if (m_benchNFillAfterbook==1) {
112  } else {
115  }
116 }

◆ benchPostProcHistograms()

void ManagedMonitorToolBase::Imp::benchPostProcHistograms ( )

Definition at line 127 of file ManagedMonitorToolBase.cxx.

128 {
129  if (!m_doResourceMon)
130  return;
136  benchReset();
137 }

◆ benchPreBookHistograms()

void ManagedMonitorToolBase::Imp::benchPreBookHistograms ( )

Definition at line 75 of file ManagedMonitorToolBase.cxx.

76 {
77  if (!m_doResourceMon)
78  return;
79  benchReset();
81 }

◆ benchPreFillHistograms()

void ManagedMonitorToolBase::Imp::benchPreFillHistograms ( )

Definition at line 94 of file ManagedMonitorToolBase.cxx.

95 {
96  if (!m_doResourceMon)
97  return;
100 }

◆ benchPreProcHistograms()

void ManagedMonitorToolBase::Imp::benchPreProcHistograms ( )

Definition at line 119 of file ManagedMonitorToolBase.cxx.

120 {
121  if (!m_doResourceMon)
122  return;
124 }

◆ benchReset()

void ManagedMonitorToolBase::Imp::benchReset ( )

Definition at line 140 of file ManagedMonitorToolBase.cxx.

141 {
142  if (!m_doResourceMon)
143  return;
145  m_bench_tmp.reset();
152 
153 }

Member Data Documentation

◆ m_bench_book

AthMonBench ManagedMonitorToolBase::Imp::m_bench_book

Definition at line 53 of file ManagedMonitorToolBase.cxx.

◆ m_bench_fillall

AthMonBench ManagedMonitorToolBase::Imp::m_bench_fillall

Definition at line 55 of file ManagedMonitorToolBase.cxx.

◆ m_bench_fillfirst

AthMonBench ManagedMonitorToolBase::Imp::m_bench_fillfirst

Definition at line 54 of file ManagedMonitorToolBase.cxx.

◆ m_bench_filllast

AthMonBench ManagedMonitorToolBase::Imp::m_bench_filllast

Definition at line 56 of file ManagedMonitorToolBase.cxx.

◆ m_bench_proc

AthMonBench ManagedMonitorToolBase::Imp::m_bench_proc

Definition at line 57 of file ManagedMonitorToolBase.cxx.

◆ m_bench_tmp

AthMonBench ManagedMonitorToolBase::Imp::m_bench_tmp

Definition at line 52 of file ManagedMonitorToolBase.cxx.

◆ m_bench_total

AthMonBench ManagedMonitorToolBase::Imp::m_bench_total

Definition at line 58 of file ManagedMonitorToolBase.cxx.

◆ m_benchNFillAfterbook

unsigned ManagedMonitorToolBase::Imp::m_benchNFillAfterbook

Definition at line 59 of file ManagedMonitorToolBase.cxx.

◆ m_doResourceMon

bool ManagedMonitorToolBase::Imp::m_doResourceMon

Definition at line 51 of file ManagedMonitorToolBase.cxx.

◆ m_theclass

ManagedMonitorToolBase* ManagedMonitorToolBase::Imp::m_theclass

Definition at line 46 of file ManagedMonitorToolBase.cxx.

◆ m_warnAboutMissingInitialize

bool ManagedMonitorToolBase::Imp::m_warnAboutMissingInitialize

Definition at line 48 of file ManagedMonitorToolBase.cxx.

◆ s_svcLocator

std::atomic<ISvcLocator*> ManagedMonitorToolBase::Imp::s_svcLocator {nullptr}
inlinestatic

Definition at line 38 of file ManagedMonitorToolBase.cxx.


The documentation for this class was generated from the following file:
ManagedMonitorToolBase::Imp::m_bench_fillall
AthMonBench m_bench_fillall
Definition: ManagedMonitorToolBase.cxx:55
ManagedMonitorToolBase::Imp::m_bench_tmp
AthMonBench m_bench_tmp
Definition: ManagedMonitorToolBase.cxx:52
ManagedMonitorToolBase::Imp::m_benchNFillAfterbook
unsigned m_benchNFillAfterbook
Definition: ManagedMonitorToolBase.cxx:59
ManagedMonitorToolBase::Imp::m_bench_total
AthMonBench m_bench_total
Definition: ManagedMonitorToolBase.cxx:58
ManagedMonitorToolBase::Imp::m_bench_book
AthMonBench m_bench_book
Definition: ManagedMonitorToolBase.cxx:53
ManagedMonitorToolBase::Imp::benchFinalReport
void benchFinalReport()
Definition: ManagedMonitorToolBase.cxx:156
ManagedMonitorToolBase::Imp::m_bench_proc
AthMonBench m_bench_proc
Definition: ManagedMonitorToolBase.cxx:57
ManagedMonitorToolBase::Imp::m_warnAboutMissingInitialize
bool m_warnAboutMissingInitialize
Definition: ManagedMonitorToolBase.cxx:48
AthMonBench::finishMeasurement
void finishMeasurement()
Definition: AthMonBench.h:83
ManagedMonitorToolBase::Imp::m_bench_fillfirst
AthMonBench m_bench_fillfirst
Definition: ManagedMonitorToolBase.cxx:54
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
ManagedMonitorToolBase::Imp::m_doResourceMon
bool m_doResourceMon
Definition: ManagedMonitorToolBase.cxx:51
ManagedMonitorToolBase::Imp::benchReset
void benchReset()
Definition: ManagedMonitorToolBase.cxx:140
AthMonBench::s_resourceMonThreshold
static const MSG::Level s_resourceMonThreshold
Definition: AthMonBench.h:28
AthMonBench::startMeasurement
void startMeasurement()
Definition: AthMonBench.h:76
AthMonBench::reset
void reset()
Definition: AthMonBench.h:65
ManagedMonitorToolBase::Imp::m_theclass
ManagedMonitorToolBase * m_theclass
Definition: ManagedMonitorToolBase.cxx:46
AthCommonMsg::msg
MsgStream & msg() const
Definition: AthCommonMsg.h:24
ManagedMonitorToolBase::Imp::m_bench_filllast
AthMonBench m_bench_filllast
Definition: ManagedMonitorToolBase.cxx:56
AthMonBench::setUnitCount
void setUnitCount()
Definition: AthMonBench.h:111