|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef TRIGCOSTANALYSIS_MONITORTHREADOCCUPANCY_H
6 #define TRIGCOSTANALYSIS_MONITORTHREADOCCUPANCY_H 1
8 #include "../MonitorBase.h"
55 virtual std::unique_ptr<CounterBase>
newCounter(
const std::string&
name)
override;
66 #endif // TRIGCOSTANALYSIS_MONITORTHREADOCCUPANCY_H
MonitorThreadOccupancy()=delete
Forbid default constructor.
char data[hepevt_bytes_allocation_ATLAS]
virtual StatusCode newEvent(const CostData &data, const float weight=1.) override
Concrete dispatch method.
MonitorThreadOccupancy(const MonitorThreadOccupancy &)=delete
Forbid copy.
std::unordered_map< uint32_t, std::string > m_threadToCounterMap
Map thread's hash ID to a counting numeral embedded in a string.
StatusCode postProcess(float weight)
Get the global start and stop timestamps over all threads and sync these to the individual threads.
::StatusCode StatusCode
StatusCode definition for legacy code.
MonitorThreadOccupancy & operator=(const MonitorThreadOccupancy &)=delete
Forbid assignment.
Container which represents a time range and holds a collection of Monitors which monitor this range.
Concrete implementation of Monitor to monitor utilisation of individual threads in a MT job.
virtual std::unique_ptr< CounterBase > newCounter(const std::string &name) override
Concrete counter instantiation.
Caches and propagates event data to be used by monitoring algorithms.
virtual ~MonitorThreadOccupancy()=default
Default destructor.
size_t m_threadCounter
Count how many unique thread ID we have seen.