ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigCost
TrigCostAnalysis
src
monitors
MonitorThreadOccupancy.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef TRIGCOSTANALYSIS_MONITORTHREADOCCUPANCY_H
6
#define TRIGCOSTANALYSIS_MONITORTHREADOCCUPANCY_H 1
7
8
#include "
../MonitorBase.h
"
9
#include <cstdint>
10
#include <memory>
11
#include <string>
12
#include <unordered_map>
13
18
class
MonitorThreadOccupancy
:
public
MonitorBase
{
19
public
:
23
MonitorThreadOccupancy
() =
delete
;
24
30
MonitorThreadOccupancy
(
const
std::string& name,
const
MonitoredRange
* parent);
31
35
virtual
~MonitorThreadOccupancy
() =
default
;
36
40
MonitorThreadOccupancy
&
operator=
(
const
MonitorThreadOccupancy
&) =
delete
;
41
45
MonitorThreadOccupancy
(
const
MonitorThreadOccupancy
&) =
delete
;
46
52
virtual
StatusCode
newEvent
(
const
CostData
& data,
const
float
weight = 1.)
override
;
53
59
virtual
std::unique_ptr<CounterBase>
newCounter
(
const
std::string& name)
override
;
60
64
StatusCode
postProcess
(
float
weight);
65
66
std::unordered_map<uint32_t, std::string>
m_threadToCounterMap
;
67
size_t
m_threadCounter
;
68
};
69
70
#endif
// TRIGCOSTANALYSIS_MONITORTHREADOCCUPANCY_H
MonitorBase.h
CostData
Caches and propagates event data to be used by monitoring algorithms.
Definition
CostData.h:26
MonitorBase::MonitorBase
MonitorBase()=delete
Forbid default constructor.
MonitorThreadOccupancy::MonitorThreadOccupancy
MonitorThreadOccupancy()=delete
Forbid default constructor.
MonitorThreadOccupancy::~MonitorThreadOccupancy
virtual ~MonitorThreadOccupancy()=default
Default destructor.
MonitorThreadOccupancy::postProcess
StatusCode postProcess(float weight)
Get the global start and stop timestamps over all threads and sync these to the individual threads.
Definition
MonitorThreadOccupancy.cxx:57
MonitorThreadOccupancy::MonitorThreadOccupancy
MonitorThreadOccupancy(const MonitorThreadOccupancy &)=delete
Forbid copy.
MonitorThreadOccupancy::newCounter
virtual std::unique_ptr< CounterBase > newCounter(const std::string &name) override
Concrete counter instantiation.
Definition
MonitorThreadOccupancy.cxx:80
MonitorThreadOccupancy::m_threadToCounterMap
std::unordered_map< uint32_t, std::string > m_threadToCounterMap
Map thread's hash ID to a counting numeral embedded in a string.
Definition
MonitorThreadOccupancy.h:66
MonitorThreadOccupancy::operator=
MonitorThreadOccupancy & operator=(const MonitorThreadOccupancy &)=delete
Forbid assignment.
MonitorThreadOccupancy::newEvent
virtual StatusCode newEvent(const CostData &data, const float weight=1.) override
Concrete dispatch method.
Definition
MonitorThreadOccupancy.cxx:18
MonitorThreadOccupancy::m_threadCounter
size_t m_threadCounter
Count how many unique thread ID we have seen.
Definition
MonitorThreadOccupancy.h:67
MonitoredRange
Container which represents a time range and holds a collection of Monitors which monitor this range.
Definition
MonitoredRange.h:29
Generated on
for ATLAS Offline Software by
1.17.0