#include <HiveExSvc.h>
|
std::vector< std::list< tDat > > | m_times |
|
std::vector< std::unique_ptr< std::mutex > > | m_locks |
|
Definition at line 24 of file HiveExSvc.h.
◆ HiveExSvc()
HiveExSvc::HiveExSvc |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
svc |
|
) |
| |
◆ ~HiveExSvc()
HiveExSvc::~HiveExSvc |
( |
| ) |
|
|
virtual |
◆ add()
void HiveExSvc::add |
( |
const std::string & |
algName, |
|
|
const unsigned int & |
time |
|
) |
| |
|
overridevirtual |
Definition at line 77 of file HiveExSvc.cxx.
89 EventContext::ContextID_t slot = Gaudi::Hive::currentContextId();
90 std::lock_guard<std::mutex> lock ( *
m_locks[slot] );
◆ finalize()
StatusCode HiveExSvc::finalize |
( |
| ) |
|
|
overridevirtual |
Definition at line 46 of file HiveExSvc.cxx.
50 std::map<std::string,unsigned int>
sum;
51 std::map<std::string,unsigned int> sumSq;
52 std::map<std::string,unsigned int>
num;
54 for (
const auto &ve :
m_times) {
55 for (
const auto &
e : ve) {
56 sum[
e.algName] +=
e.sleep_time;
57 sumSq[
e.algName] +=
e.sleep_time *
e.sleep_time;
62 info() <<
"listing timing by alg:";
63 for (
const auto &
s :
sum) {
66 info() <<
"\n " <<
s.first
67 <<
" avg: " <<
avg <<
" sig: " <<
sig;
71 return StatusCode::SUCCESS;
◆ initialize()
StatusCode HiveExSvc::initialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 24 of file HiveExSvc.cxx.
26 size_t nslots = Gaudi::Concurrency::ConcurrencyFlags::numConcurrentEvents();
31 ATH_MSG_INFO(
"initialize structures of size " << nslots);
37 m = std::make_unique<std::mutex>();
40 return StatusCode::SUCCESS;
◆ m_locks
std::vector< std::unique_ptr<std::mutex> > HiveExSvc::m_locks |
|
private |
◆ m_times
std::vector< std::list<tDat> > HiveExSvc::m_times |
|
private |
The documentation for this class was generated from the following files: