#include <ModuleCallingContext.h>
Public Types | |
enum | State { State::kPrefetching, State::kRunning, State::kInvalid } |
typedef ParentContext::Type | Type |
Private Attributes | |
std::uintptr_t | id_ |
ModuleDescription const * | moduleDescription_ |
ParentContext | parent_ |
ModuleCallingContext const * | previousModuleOnThread_ |
State | state_ |
Description: This is intended primarily to be passed to Services as an argument to their callback functions.
Usage:
Definition at line 33 of file ModuleCallingContext.h.
Definition at line 35 of file ModuleCallingContext.h.
|
strong |
Enumerator | |
---|---|
kPrefetching | |
kRunning | |
kInvalid |
Definition at line 37 of file ModuleCallingContext.h.
|
noexcept |
Definition at line 14 of file ModuleCallingContext.cc.
|
noexcept |
Definition at line 21 of file ModuleCallingContext.cc.
|
inlinenoexcept |
Returns a unique id for this module to differentiate possibly concurrent calls to the module. The value returned may be large so not appropriate for an index lookup. A value of 0 denotes a call to produce, analyze or filter. Other values denote a transform.
Definition at line 62 of file ModuleCallingContext.h.
References id_.
Referenced by edm::moduleAlloc::monitor_file_utilities::module_callid(), edm::service::monitor_file_utilities::module_callid(), edm::service::Tracer::postModuleTransform(), edm::service::Tracer::postModuleTransformAcquiring(), edm::service::Tracer::postModuleTransformPrefetching(), edm::service::Tracer::preModuleTransform(), edm::service::Tracer::preModuleTransformAcquiring(), and edm::service::Tracer::preModuleTransformPrefetching().
|
noexcept |
Definition at line 74 of file ModuleCallingContext.cc.
References internalContext(), edm::ParentContext::kInternal, edm::ParentContext::kModule, edm::InternalContext::moduleCallingContext(), moduleCallingContext(), and type().
Referenced by edm::ESModuleCallingContext::depth(), edm::service::Tracer::postEventReadFromSource(), edm::service::Tracer::postModuleAccessInputProcessBlock(), edm::service::Tracer::postModuleBeginProcessBlock(), edm::service::Tracer::postModuleEndProcessBlock(), edm::service::Tracer::postModuleEvent(), edm::service::Tracer::postModuleEventAcquire(), edm::service::Tracer::postModuleEventDelayedGet(), edm::service::Tracer::postModuleEventPrefetching(), edm::service::Tracer::postModuleGlobalBeginLumi(), edm::service::Tracer::postModuleGlobalBeginRun(), edm::service::Tracer::postModuleGlobalEndLumi(), edm::service::Tracer::postModuleGlobalEndRun(), edm::service::Tracer::postModuleGlobalPrefetching(), edm::service::Tracer::postModuleStreamBeginLumi(), edm::service::Tracer::postModuleStreamBeginRun(), edm::service::Tracer::postModuleStreamEndLumi(), edm::service::Tracer::postModuleStreamEndRun(), edm::service::Tracer::postModuleStreamPrefetching(), edm::service::Tracer::postModuleTransform(), edm::service::Tracer::postModuleTransformAcquiring(), edm::service::Tracer::postModuleTransformPrefetching(), edm::service::Tracer::postModuleWriteLumi(), edm::service::Tracer::postModuleWriteProcessBlock(), edm::service::Tracer::postModuleWriteRun(), edm::service::Tracer::preEventReadFromSource(), edm::service::Tracer::preModuleAccessInputProcessBlock(), edm::service::Tracer::preModuleBeginProcessBlock(), edm::service::Tracer::preModuleEndProcessBlock(), edm::service::Tracer::preModuleEvent(), edm::service::Tracer::preModuleEventAcquire(), edm::service::Tracer::preModuleEventDelayedGet(), edm::service::Tracer::preModuleEventPrefetching(), edm::service::Tracer::preModuleGlobalBeginLumi(), edm::service::Tracer::preModuleGlobalBeginRun(), edm::service::Tracer::preModuleGlobalEndLumi(), edm::service::Tracer::preModuleGlobalEndRun(), edm::service::Tracer::preModuleGlobalPrefetching(), edm::service::Tracer::preModuleStreamBeginLumi(), edm::service::Tracer::preModuleStreamBeginRun(), edm::service::Tracer::preModuleStreamEndLumi(), edm::service::Tracer::preModuleStreamEndRun(), edm::service::Tracer::preModuleStreamPrefetching(), edm::service::Tracer::preModuleTransform(), edm::service::Tracer::preModuleTransformAcquiring(), edm::service::Tracer::preModuleTransformPrefetching(), edm::service::Tracer::preModuleWriteLumi(), edm::service::Tracer::preModuleWriteProcessBlock(), and edm::service::Tracer::preModuleWriteRun().
|
noexcept |
Definition at line 51 of file ModuleCallingContext.cc.
References Exception, getTopModuleCallingContext(), globalContext(), edm::ParentContext::kGlobal, edm::errors::LogicError, and type().
Referenced by edm::Worker::emitPostModuleGlobalPrefetchingSignal(), and edm::service::MessageLogger::setThreadContext().
|
noexcept |
Definition at line 40 of file ModuleCallingContext.cc.
References Exception, getTopModuleCallingContext(), edm::ParentContext::kPlaceInPath, edm::ParentContext::kStream, edm::errors::LogicError, edm::PlaceInPathContext::pathContext(), placeInPathContext(), edm::PathContext::streamContext(), streamContext(), and type().
Referenced by edm::Worker::emitPostModuleEventPrefetchingSignal(), edm::Worker::emitPostModuleStreamPrefetchingSignal(), edm::EventAcquireSignalsSentry::EventAcquireSignalsSentry(), edm::EventSignalsSentry::EventSignalsSentry(), edm::DelayedReader::getProduct(), edm::UnscheduledProductResolver::prefetchAsync_(), edm::TransformingProductResolver::prefetchAsync_(), edm::DelayedReaderInputProductResolver::resolveProduct_(), edm::service::MessageLogger::setThreadContext(), edm::TransformerBase::transformImpAsync(), edm::EventAcquireSignalsSentry::~EventAcquireSignalsSentry(), and edm::EventSignalsSentry::~EventSignalsSentry().
|
noexcept |
Definition at line 60 of file ModuleCallingContext.cc.
References internalContext(), edm::ParentContext::kInternal, edm::ParentContext::kModule, edm::InternalContext::moduleCallingContext(), moduleCallingContext(), and type().
Referenced by getGlobalContext(), getStreamContext(), edm::ESModuleCallingContext::getTopModuleCallingContext(), and edm::service::MessageLogger::setThreadContext().
|
inline |
Definition at line 67 of file ModuleCallingContext.h.
References edm::ParentContext::globalContext(), and parent_.
Referenced by edm::exceptionContext(), and getGlobalContext().
|
inline |
Definition at line 68 of file ModuleCallingContext.h.
References edm::ParentContext::internalContext(), and parent_.
Referenced by depth(), edm::exceptionContext(), and getTopModuleCallingContext().
|
inline |
Definition at line 64 of file ModuleCallingContext.h.
References edm::ParentContext::moduleCallingContext(), and parent_.
Referenced by depth(), edm::exceptionContext(), getTopModuleCallingContext(), and edm::operator<<().
|
inlinenoexcept |
Definition at line 55 of file ModuleCallingContext.h.
References moduleDescription_.
Referenced by edm::Worker::description(), edm::exceptionContext(), PileupRandomNumberGenerator::findPresentModule(), edm::service::RandomNumberGeneratorService::getEngine(), edm::moduleAlloc::monitor_file_utilities::module_id(), edm::service::monitor_file_utilities::module_id(), edm::service::RandomNumberGeneratorService::mySeed(), edm::operator<<(), edm::SystemTimeKeeper::pauseModuleEvent(), edm::service::Tracer::postEventReadFromSource(), edm::service::SimpleMemoryCheck::postModule(), edm::service::Tracer::postModuleAccessInputProcessBlock(), edmtest::TestServiceOne::postModuleBeginProcessBlock(), edm::service::Tracer::postModuleBeginProcessBlock(), ROCmMonitoringService::postModuleBeginStream(), CUDAMonitoringService::postModuleBeginStream(), edmtest::TestServiceOne::postModuleBeginStream(), edm::service::MessageLogger::postModuleBeginStream(), edm::service::Tracer::postModuleBeginStream(), NVProfilerService::postModuleBeginStream(), edmtest::TestServiceOne::postModuleEndProcessBlock(), edm::service::Tracer::postModuleEndProcessBlock(), edmtest::TestServiceOne::postModuleEndStream(), edm::service::MessageLogger::postModuleEndStream(), edm::service::Tracer::postModuleEndStream(), NVProfilerService::postModuleEndStream(), ROCmMonitoringService::postModuleEvent(), CUDAMonitoringService::postModuleEvent(), FWPathsPopup::postModuleEvent(), edm::service::IgProfService::postModuleEvent(), edm::service::JeProfService::postModuleEvent(), edm::service::Timing::postModuleEvent(), TFileService::postModuleEvent(), edm::service::Tracer::postModuleEvent(), FastTimerService::postModuleEvent(), NVProfilerService::postModuleEvent(), edm::service::Tracer::postModuleEventAcquire(), FastTimerService::postModuleEventAcquire(), NVProfilerService::postModuleEventAcquire(), edm::service::Tracer::postModuleEventDelayedGet(), edm::service::Tracer::postModuleEventPrefetching(), NVProfilerService::postModuleEventPrefetching(), TFileService::postModuleGlobal(), edmtest::TestServiceTwo::postModuleGlobalBeginLumi(), edmtest::TestServiceOne::postModuleGlobalBeginLumi(), edm::service::Tracer::postModuleGlobalBeginLumi(), NVProfilerService::postModuleGlobalBeginLumi(), edmtest::TestServiceTwo::postModuleGlobalBeginRun(), edmtest::TestServiceOne::postModuleGlobalBeginRun(), edm::service::Tracer::postModuleGlobalBeginRun(), NVProfilerService::postModuleGlobalBeginRun(), edmtest::TestServiceTwo::postModuleGlobalEndLumi(), edmtest::TestServiceOne::postModuleGlobalEndLumi(), edm::service::Tracer::postModuleGlobalEndLumi(), NVProfilerService::postModuleGlobalEndLumi(), edmtest::TestServiceTwo::postModuleGlobalEndRun(), edmtest::TestServiceOne::postModuleGlobalEndRun(), edm::service::Tracer::postModuleGlobalEndRun(), NVProfilerService::postModuleGlobalEndRun(), edm::service::Tracer::postModuleGlobalPrefetching(), edmtest::TestServiceTwo::postModuleStreamBeginLumi(), edmtest::TestServiceOne::postModuleStreamBeginLumi(), edm::service::Tracer::postModuleStreamBeginLumi(), NVProfilerService::postModuleStreamBeginLumi(), edmtest::TestServiceTwo::postModuleStreamBeginRun(), edmtest::TestServiceOne::postModuleStreamBeginRun(), edm::service::Tracer::postModuleStreamBeginRun(), NVProfilerService::postModuleStreamBeginRun(), edm::service::RandomNumberGeneratorService::postModuleStreamCheck(), edmtest::TestServiceTwo::postModuleStreamEndLumi(), edmtest::TestServiceOne::postModuleStreamEndLumi(), edm::service::Tracer::postModuleStreamEndLumi(), NVProfilerService::postModuleStreamEndLumi(), edmtest::TestServiceTwo::postModuleStreamEndRun(), edmtest::TestServiceOne::postModuleStreamEndRun(), edm::service::Tracer::postModuleStreamEndRun(), NVProfilerService::postModuleStreamEndRun(), edm::service::Tracer::postModuleStreamPrefetching(), edm::service::Tracer::postModuleTransform(), edm::service::Tracer::postModuleTransformAcquiring(), edm::service::Tracer::postModuleTransformPrefetching(), edm::service::Tracer::postModuleWriteLumi(), edm::service::Tracer::postModuleWriteProcessBlock(), edm::service::Tracer::postModuleWriteRun(), edm::service::Tracer::preEventReadFromSource(), VariableHelperService::preModule(), edm::service::SimpleMemoryCheck::preModule(), edm::service::Tracer::preModuleAccessInputProcessBlock(), edmtest::TestServiceOne::preModuleBeginProcessBlock(), edm::service::Tracer::preModuleBeginProcessBlock(), edmtest::TestServiceOne::preModuleBeginStream(), edm::service::MessageLogger::preModuleBeginStream(), edm::service::Tracer::preModuleBeginStream(), NVProfilerService::preModuleBeginStream(), edmtest::TestServiceOne::preModuleEndProcessBlock(), edm::service::Tracer::preModuleEndProcessBlock(), edmtest::TestServiceOne::preModuleEndStream(), edm::service::MessageLogger::preModuleEndStream(), edm::service::Tracer::preModuleEndStream(), NVProfilerService::preModuleEndStream(), FWPathsPopup::preModuleEvent(), edm::service::IgProfService::preModuleEvent(), edm::service::JeProfService::preModuleEvent(), TFileService::preModuleEvent(), edm::service::Tracer::preModuleEvent(), evf::FastMonitoringService::preModuleEvent(), NVProfilerService::preModuleEvent(), edm::service::Tracer::preModuleEventAcquire(), evf::FastMonitoringService::preModuleEventAcquire(), NVProfilerService::preModuleEventAcquire(), edm::service::Tracer::preModuleEventDelayedGet(), edm::service::Tracer::preModuleEventPrefetching(), NVProfilerService::preModuleEventPrefetching(), TFileService::preModuleGlobal(), edmtest::TestServiceTwo::preModuleGlobalBeginLumi(), edmtest::TestServiceOne::preModuleGlobalBeginLumi(), edm::service::Tracer::preModuleGlobalBeginLumi(), NVProfilerService::preModuleGlobalBeginLumi(), edmtest::TestServiceTwo::preModuleGlobalBeginRun(), edmtest::TestServiceOne::preModuleGlobalBeginRun(), edm::service::Tracer::preModuleGlobalBeginRun(), NVProfilerService::preModuleGlobalBeginRun(), edmtest::TestServiceTwo::preModuleGlobalEndLumi(), edmtest::TestServiceOne::preModuleGlobalEndLumi(), edm::service::Tracer::preModuleGlobalEndLumi(), NVProfilerService::preModuleGlobalEndLumi(), edmtest::TestServiceTwo::preModuleGlobalEndRun(), edmtest::TestServiceOne::preModuleGlobalEndRun(), edm::service::Tracer::preModuleGlobalEndRun(), NVProfilerService::preModuleGlobalEndRun(), edm::service::Tracer::preModuleGlobalPrefetching(), edmtest::TestServiceTwo::preModuleStreamBeginLumi(), edmtest::TestServiceOne::preModuleStreamBeginLumi(), edm::service::Tracer::preModuleStreamBeginLumi(), NVProfilerService::preModuleStreamBeginLumi(), edmtest::TestServiceTwo::preModuleStreamBeginRun(), edmtest::TestServiceOne::preModuleStreamBeginRun(), edm::service::Tracer::preModuleStreamBeginRun(), NVProfilerService::preModuleStreamBeginRun(), edm::service::RandomNumberGeneratorService::preModuleStreamCheck(), edmtest::TestServiceTwo::preModuleStreamEndLumi(), edmtest::TestServiceOne::preModuleStreamEndLumi(), edm::service::Tracer::preModuleStreamEndLumi(), NVProfilerService::preModuleStreamEndLumi(), edmtest::TestServiceTwo::preModuleStreamEndRun(), edmtest::TestServiceOne::preModuleStreamEndRun(), edm::service::Tracer::preModuleStreamEndRun(), NVProfilerService::preModuleStreamEndRun(), edm::service::Tracer::preModuleStreamPrefetching(), edm::service::Tracer::preModuleTransform(), edm::service::Tracer::preModuleTransformAcquiring(), edm::service::Tracer::preModuleTransformPrefetching(), edm::service::Tracer::preModuleWriteLumi(), edm::service::Tracer::preModuleWriteProcessBlock(), edm::service::Tracer::preModuleWriteRun(), edm::SystemTimeKeeper::restartModuleEvent(), edm::SystemTimeKeeper::startModuleEvent(), edm::SystemTimeKeeper::stopModuleEvent(), and edm::service::ConcurrentModuleTimer::trackModule().
|
inlinenoexcept |
Definition at line 63 of file ModuleCallingContext.h.
References parent_.
Referenced by edm::ParentContext::isAtEndTransition(), edm::operator<<(), edm::PuttableProductResolver::prefetchAsync_(), edm::SwitchProducerProductResolver::prefetchAsync_(), edm::ParentProcessProductResolver::prefetchAsync_(), edm::Worker::resetModuleDescription(), edm::ParentProcessProductResolver::resolveProduct_(), and edmtest::TestServicesOnNonFrameworkThreadsAnalyzer::runOnOtherThread().
|
inline |
Definition at line 65 of file ModuleCallingContext.h.
References parent_, and edm::ParentContext::placeInPathContext().
Referenced by edm::exceptionContext(), getStreamContext(), edm::SystemTimeKeeper::pauseModuleEvent(), and edm::SystemTimeKeeper::stopModuleEvent().
|
inlinenoexcept |
Definition at line 85 of file ModuleCallingContext.h.
References previousModuleOnThread_.
Referenced by edm::operator<<(), TFileService::postModuleEvent(), TFileService::postModuleGlobal(), and edm::Worker::resetModuleDescription().
|
noexcept |
Definition at line 32 of file ModuleCallingContext.cc.
References class-composition::parent.
|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 56 of file ModuleCallingContext.h.
References state_.
Referenced by edm::exceptionContext(), edm::operator<<(), FastTimerService::postEventReadFromSource(), FastTimerService::preEventReadFromSource(), edm::Worker::resetModuleDescription(), and setState().
|
inline |
Definition at line 66 of file ModuleCallingContext.h.
References parent_, and edm::ParentContext::streamContext().
Referenced by edm::exceptionContext(), and getStreamContext().
|
inlinenoexcept |
Definition at line 57 of file ModuleCallingContext.h.
References parent_, and edm::ParentContext::type().
Referenced by depth(), edm::exceptionContext(), getGlobalContext(), getStreamContext(), getTopModuleCallingContext(), edm::operator<<(), edm::SystemTimeKeeper::pauseModuleEvent(), and edm::SystemTimeKeeper::stopModuleEvent().
|
private |
Definition at line 91 of file ModuleCallingContext.h.
Referenced by callID().
|
private |
Definition at line 89 of file ModuleCallingContext.h.
Referenced by moduleDescription().
|
private |
Definition at line 90 of file ModuleCallingContext.h.
Referenced by globalContext(), internalContext(), moduleCallingContext(), parent(), placeInPathContext(), streamContext(), and type().
|
private |
Definition at line 88 of file ModuleCallingContext.h.
Referenced by previousModuleOnThread().
|
private |
Definition at line 92 of file ModuleCallingContext.h.
Referenced by setState(), and state().