Definition at line 27 of file ConcurrentModuleTimer.cc.
Definition at line 62 of file ConcurrentModuleTimer.cc.
68 iReg.watchPreModuleEvent([
this](StreamContext
const&, ModuleCallingContext
const&){
71 iReg.watchPostModuleEvent([
this](StreamContext
const&, ModuleCallingContext
const&){
75 iReg.watchPreModuleEventDelayedGet([
this](StreamContext
const&, ModuleCallingContext
const&){
78 iReg.watchPostModuleEventDelayedGet([
this](StreamContext
const&, ModuleCallingContext
const&){
90 iReg.watchPreSourceEvent([
this](StreamID){
97 iReg.watchPostSourceEvent([
this](StreamID){
unsigned int maxNumberOfThreads() const
std::chrono::high_resolution_clock::time_point m_time
std::atomic< bool > m_spinLock
std::unique_ptr< std::atomic< std::chrono::high_resolution_clock::rep >[]> m_timeSums
ConcurrentModuleTimer::~ConcurrentModuleTimer |
( |
| ) |
|
void ConcurrentModuleTimer::start |
( |
void |
| ) |
|
|
private |
void ConcurrentModuleTimer::stop |
( |
| ) |
|
|
private |
Definition at line 155 of file ConcurrentModuleTimer.cc.
References diffTreeTool::diff, i, m_nModules, m_spinLock, m_time, m_timeSums, and cmsPerfSuiteHarvest::now.
158 std::chrono::high_resolution_clock::time_point oldTime;
159 bool expected =
false;
160 unsigned int nModules;
161 while (not
m_spinLock.compare_exchange_weak(expected,
true,std::memory_order_acq_rel)){
168 m_spinLock.store(
false,std::memory_order_release);
171 auto diff = newTime - oldTime;
172 for(
unsigned int i=0;
i<=nModules;++
i) {
std::chrono::high_resolution_clock::time_point m_time
std::atomic< bool > m_spinLock
std::unique_ptr< std::atomic< std::chrono::high_resolution_clock::rep >[]> m_timeSums
unsigned int edm::service::ConcurrentModuleTimer::m_nModules |
|
private |
unsigned int edm::service::ConcurrentModuleTimer::m_nTimeSums |
|
private |
std::atomic<bool> edm::service::ConcurrentModuleTimer::m_spinLock |
|
private |
bool edm::service::ConcurrentModuleTimer::m_startedTiming |
|
private |
std::chrono::high_resolution_clock::time_point edm::service::ConcurrentModuleTimer::m_time |
|
private |
std::unique_ptr<std::atomic<std::chrono::high_resolution_clock::rep>[]> edm::service::ConcurrentModuleTimer::m_timeSums |
|
private |