CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
edm::service::Tracer Class Reference

#include <Tracer.h>

Public Member Functions

void postBeginJob ()
 
void postCloseFile (std::string const &, bool)
 
void postEndJob ()
 
void postEvent (StreamContext const &)
 
void postGlobalBeginLumi (GlobalContext const &)
 
void postGlobalBeginRun (GlobalContext const &)
 
void postGlobalEndLumi (GlobalContext const &)
 
void postGlobalEndRun (GlobalContext const &)
 
void postModuleBeginJob (ModuleDescription const &md)
 
void postModuleBeginStream (StreamContext const &, ModuleCallingContext const &)
 
void postModuleConstruction (ModuleDescription const &md)
 
void postModuleEndJob (ModuleDescription const &md)
 
void postModuleEndStream (StreamContext const &, ModuleCallingContext const &)
 
void postModuleEvent (StreamContext const &, ModuleCallingContext const &)
 
void postModuleEventDelayedGet (StreamContext const &, ModuleCallingContext const &)
 
void postModuleGlobalBeginLumi (GlobalContext const &, ModuleCallingContext const &)
 
void postModuleGlobalBeginRun (GlobalContext const &, ModuleCallingContext const &)
 
void postModuleGlobalEndLumi (GlobalContext const &, ModuleCallingContext const &)
 
void postModuleGlobalEndRun (GlobalContext const &, ModuleCallingContext const &)
 
void postModuleStreamBeginLumi (StreamContext const &, ModuleCallingContext const &)
 
void postModuleStreamBeginRun (StreamContext const &, ModuleCallingContext const &)
 
void postModuleStreamEndLumi (StreamContext const &, ModuleCallingContext const &)
 
void postModuleStreamEndRun (StreamContext const &, ModuleCallingContext const &)
 
void postOpenFile (std::string const &, bool)
 
void postPathEvent (StreamContext const &, PathContext const &, HLTPathStatus const &)
 
void postSourceConstruction (ModuleDescription const &md)
 
void postSourceEvent (StreamID)
 
void postSourceLumi ()
 
void postSourceRun ()
 
void postStreamBeginLumi (StreamContext const &)
 
void postStreamBeginRun (StreamContext const &)
 
void postStreamEndLumi (StreamContext const &)
 
void postStreamEndRun (StreamContext const &)
 
void preallocate (service::SystemBounds const &)
 
void preBeginJob (PathsAndConsumesOfModulesBase const &, ProcessContext const &)
 
void preCloseFile (std::string const &lfn, bool primary)
 
void preEvent (StreamContext const &)
 
void preGlobalBeginLumi (GlobalContext const &)
 
void preGlobalBeginRun (GlobalContext const &)
 
void preGlobalEndLumi (GlobalContext const &)
 
void preGlobalEndRun (GlobalContext const &)
 
void preModuleBeginJob (ModuleDescription const &md)
 
void preModuleBeginStream (StreamContext const &, ModuleCallingContext const &)
 
void preModuleConstruction (ModuleDescription const &md)
 
void preModuleEndJob (ModuleDescription const &md)
 
void preModuleEndStream (StreamContext const &, ModuleCallingContext const &)
 
void preModuleEvent (StreamContext const &, ModuleCallingContext const &)
 
void preModuleEventDelayedGet (StreamContext const &, ModuleCallingContext const &)
 
void preModuleGlobalBeginLumi (GlobalContext const &, ModuleCallingContext const &)
 
void preModuleGlobalBeginRun (GlobalContext const &, ModuleCallingContext const &)
 
void preModuleGlobalEndLumi (GlobalContext const &, ModuleCallingContext const &)
 
void preModuleGlobalEndRun (GlobalContext const &, ModuleCallingContext const &)
 
void preModuleStreamBeginLumi (StreamContext const &, ModuleCallingContext const &)
 
void preModuleStreamBeginRun (StreamContext const &, ModuleCallingContext const &)
 
void preModuleStreamEndLumi (StreamContext const &, ModuleCallingContext const &)
 
void preModuleStreamEndRun (StreamContext const &, ModuleCallingContext const &)
 
void preOpenFile (std::string const &, bool)
 
void prePathEvent (StreamContext const &, PathContext const &)
 
void preSourceConstruction (ModuleDescription const &md)
 
void preSourceEvent (StreamID)
 
void preSourceLumi ()
 
void preSourceRun ()
 
void preStreamBeginLumi (StreamContext const &)
 
void preStreamBeginRun (StreamContext const &)
 
void preStreamEndLumi (StreamContext const &)
 
void preStreamEndRun (StreamContext const &)
 
 Tracer (const ParameterSet &, ActivityRegistry &)
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 

Private Attributes

std::set< std::string > dumpContextForLabels_
 
bool dumpNonModuleContext_
 
bool dumpPathsAndConsumes_
 
std::string indention_
 
bool printTimestamps_
 

Detailed Description

Description: <one line="" class="" summary>="">

Usage: <usage>

Definition at line 47 of file Tracer.h.

Constructor & Destructor Documentation

Tracer::Tracer ( const ParameterSet iPS,
ActivityRegistry iRegistry 
)

Definition at line 66 of file Tracer.cc.

References edm::signalslot::Signal< T >::connect(), dumpContextForLabels_, edm::EventID::event(), edm::StreamContext::eventID(), edm::ParameterSet::getUntrackedParameter(), indention_, diffTwoXMLs::label, edm::EventID::luminosityBlock(), edm::LuminosityBlockID::luminosityBlock(), edm::GlobalContext::luminosityBlockID(), dbtoconf::out, postBeginJob(), postCloseFile(), postEndJob(), postEvent(), postGlobalBeginLumi(), postGlobalBeginRun(), postGlobalEndLumi(), postGlobalEndRun(), postModuleBeginJob(), postModuleBeginStream(), postModuleConstruction(), postModuleEndJob(), postModuleEndStream(), postModuleEvent(), postModuleEventDelayedGet(), postModuleGlobalBeginLumi(), postModuleGlobalBeginRun(), postModuleGlobalEndLumi(), postModuleGlobalEndRun(), postModuleStreamBeginLumi(), postModuleStreamBeginRun(), postModuleStreamEndLumi(), postModuleStreamEndRun(), postOpenFile(), postPathEvent(), postSourceConstruction(), postSourceEvent(), postSourceLumi(), postSourceRun(), postStreamBeginLumi(), postStreamBeginRun(), postStreamEndLumi(), postStreamEndRun(), preallocate(), preBeginJob(), preCloseFile(), preEvent(), preGlobalBeginLumi(), preGlobalBeginRun(), edm::ActivityRegistry::preGlobalEarlyTerminationSignal_, preGlobalEndLumi(), preGlobalEndRun(), preModuleBeginJob(), preModuleBeginStream(), preModuleConstruction(), preModuleEndJob(), preModuleEndStream(), preModuleEvent(), preModuleEventDelayedGet(), preModuleGlobalBeginLumi(), preModuleGlobalBeginRun(), preModuleGlobalEndLumi(), preModuleGlobalEndRun(), preModuleStreamBeginLumi(), preModuleStreamBeginRun(), preModuleStreamEndLumi(), preModuleStreamEndRun(), preOpenFile(), prePathEvent(), preSourceConstruction(), edm::ActivityRegistry::preSourceEarlyTerminationSignal_, preSourceEvent(), preSourceLumi(), preSourceRun(), preStreamBeginLumi(), preStreamBeginRun(), edm::ActivityRegistry::preStreamEarlyTerminationSignal_, preStreamEndLumi(), preStreamEndRun(), printTimestamps_, edm::EventID::run(), edm::LuminosityBlockID::run(), edm::StreamContext::streamID(), AlCaHLTBitMon_QueryRunRegistry::string, edm::GlobalContext::timestamp(), edm::StreamContext::timestamp(), edm::LuminosityBlockID::value(), edm::Timestamp::value(), edm::ActivityRegistry::watchPostBeginJob(), edm::ActivityRegistry::watchPostCloseFile(), edm::ActivityRegistry::watchPostEndJob(), edm::ActivityRegistry::watchPostEvent(), edm::ActivityRegistry::watchPostGlobalBeginLumi(), edm::ActivityRegistry::watchPostGlobalBeginRun(), edm::ActivityRegistry::watchPostGlobalEndLumi(), edm::ActivityRegistry::watchPostGlobalEndRun(), edm::ActivityRegistry::watchPostModuleBeginJob(), edm::ActivityRegistry::watchPostModuleBeginStream(), edm::ActivityRegistry::watchPostModuleConstruction(), edm::ActivityRegistry::watchPostModuleEndJob(), edm::ActivityRegistry::watchPostModuleEndStream(), edm::ActivityRegistry::watchPostModuleEvent(), edm::ActivityRegistry::watchPostModuleEventDelayedGet(), edm::ActivityRegistry::watchPostModuleGlobalBeginLumi(), edm::ActivityRegistry::watchPostModuleGlobalBeginRun(), edm::ActivityRegistry::watchPostModuleGlobalEndLumi(), edm::ActivityRegistry::watchPostModuleGlobalEndRun(), edm::ActivityRegistry::watchPostModuleStreamBeginLumi(), edm::ActivityRegistry::watchPostModuleStreamBeginRun(), edm::ActivityRegistry::watchPostModuleStreamEndLumi(), edm::ActivityRegistry::watchPostModuleStreamEndRun(), edm::ActivityRegistry::watchPostOpenFile(), edm::ActivityRegistry::watchPostPathEvent(), edm::ActivityRegistry::watchPostSourceConstruction(), edm::ActivityRegistry::watchPostSourceEvent(), edm::ActivityRegistry::watchPostSourceLumi(), edm::ActivityRegistry::watchPostSourceRun(), edm::ActivityRegistry::watchPostStreamBeginLumi(), edm::ActivityRegistry::watchPostStreamBeginRun(), edm::ActivityRegistry::watchPostStreamEndLumi(), edm::ActivityRegistry::watchPostStreamEndRun(), edm::ActivityRegistry::watchPreallocate(), edm::ActivityRegistry::watchPreBeginJob(), edm::ActivityRegistry::watchPreCloseFile(), edm::ActivityRegistry::watchPreEvent(), edm::ActivityRegistry::watchPreGlobalBeginLumi(), edm::ActivityRegistry::watchPreGlobalBeginRun(), edm::ActivityRegistry::watchPreGlobalEndLumi(), edm::ActivityRegistry::watchPreGlobalEndRun(), edm::ActivityRegistry::watchPreModuleBeginJob(), edm::ActivityRegistry::watchPreModuleBeginStream(), edm::ActivityRegistry::watchPreModuleConstruction(), edm::ActivityRegistry::watchPreModuleEndJob(), edm::ActivityRegistry::watchPreModuleEndStream(), edm::ActivityRegistry::watchPreModuleEvent(), edm::ActivityRegistry::watchPreModuleEventDelayedGet(), edm::ActivityRegistry::watchPreModuleGlobalBeginLumi(), edm::ActivityRegistry::watchPreModuleGlobalBeginRun(), edm::ActivityRegistry::watchPreModuleGlobalEndLumi(), edm::ActivityRegistry::watchPreModuleGlobalEndRun(), edm::ActivityRegistry::watchPreModuleStreamBeginLumi(), edm::ActivityRegistry::watchPreModuleStreamBeginRun(), edm::ActivityRegistry::watchPreModuleStreamEndLumi(), edm::ActivityRegistry::watchPreModuleStreamEndRun(), edm::ActivityRegistry::watchPreOpenFile(), edm::ActivityRegistry::watchPrePathEvent(), edm::ActivityRegistry::watchPreSourceConstruction(), edm::ActivityRegistry::watchPreSourceEvent(), edm::ActivityRegistry::watchPreSourceLumi(), edm::ActivityRegistry::watchPreSourceRun(), edm::ActivityRegistry::watchPreStreamBeginLumi(), edm::ActivityRegistry::watchPreStreamBeginRun(), edm::ActivityRegistry::watchPreStreamEndLumi(), and edm::ActivityRegistry::watchPreStreamEndRun().

66  :
67  indention_(iPS.getUntrackedParameter<std::string>("indention")),
69  dumpNonModuleContext_(iPS.getUntrackedParameter<bool>("dumpNonModuleContext")),
70  dumpPathsAndConsumes_(iPS.getUntrackedParameter<bool>("dumpPathsAndConsumes")),
71  printTimestamps_(iPS.getUntrackedParameter<bool>("printTimestamps"))
72 {
73  for (std::string & label: iPS.getUntrackedParameter<std::vector<std::string>>("dumpContextForLabels"))
74  dumpContextForLabels_.insert(std::move(label));
75 
76  iRegistry.watchPreallocate(this, &Tracer::preallocate);
77 
78  iRegistry.watchPreBeginJob(this, &Tracer::preBeginJob);
79  iRegistry.watchPostBeginJob(this, &Tracer::postBeginJob);
80  iRegistry.watchPostEndJob(this, &Tracer::postEndJob);
81 
82  iRegistry.watchPreSourceEvent(this, &Tracer::preSourceEvent);
83  iRegistry.watchPostSourceEvent(this, &Tracer::postSourceEvent);
84 
85  iRegistry.watchPreSourceLumi(this, &Tracer::preSourceLumi);
86  iRegistry.watchPostSourceLumi(this, &Tracer::postSourceLumi);
87 
88  iRegistry.watchPreSourceRun(this, &Tracer::preSourceRun);
89  iRegistry.watchPostSourceRun(this, &Tracer::postSourceRun);
90 
91  iRegistry.watchPreOpenFile(this, &Tracer::preOpenFile);
92  iRegistry.watchPostOpenFile(this, &Tracer::postOpenFile);
93 
94  iRegistry.watchPreCloseFile(this, &Tracer::preCloseFile);
95  iRegistry.watchPostCloseFile(this, &Tracer::postCloseFile);
96 
97  iRegistry.watchPreModuleBeginStream(this, &Tracer::preModuleBeginStream);
98  iRegistry.watchPostModuleBeginStream(this, &Tracer::postModuleBeginStream);
99 
100  iRegistry.watchPreModuleEndStream(this, &Tracer::preModuleEndStream);
101  iRegistry.watchPostModuleEndStream(this, &Tracer::postModuleEndStream);
102 
103  iRegistry.watchPreGlobalBeginRun(this, &Tracer::preGlobalBeginRun);
104  iRegistry.watchPostGlobalBeginRun(this, &Tracer::postGlobalBeginRun);
105 
106  iRegistry.watchPreGlobalEndRun(this, &Tracer::preGlobalEndRun);
107  iRegistry.watchPostGlobalEndRun(this, &Tracer::postGlobalEndRun);
108 
109  iRegistry.watchPreStreamBeginRun(this, &Tracer::preStreamBeginRun);
110  iRegistry.watchPostStreamBeginRun(this, &Tracer::postStreamBeginRun);
111 
112  iRegistry.watchPreStreamEndRun(this, &Tracer::preStreamEndRun);
113  iRegistry.watchPostStreamEndRun(this, &Tracer::postStreamEndRun);
114 
115  iRegistry.watchPreGlobalBeginLumi(this, &Tracer::preGlobalBeginLumi);
116  iRegistry.watchPostGlobalBeginLumi(this, &Tracer::postGlobalBeginLumi);
117 
118  iRegistry.watchPreGlobalEndLumi(this, &Tracer::preGlobalEndLumi);
119  iRegistry.watchPostGlobalEndLumi(this, &Tracer::postGlobalEndLumi);
120 
121  iRegistry.watchPreStreamBeginLumi(this, &Tracer::preStreamBeginLumi);
122  iRegistry.watchPostStreamBeginLumi(this, &Tracer::postStreamBeginLumi);
123 
124  iRegistry.watchPreStreamEndLumi(this, &Tracer::preStreamEndLumi);
125  iRegistry.watchPostStreamEndLumi(this, &Tracer::postStreamEndLumi);
126 
127  iRegistry.watchPreEvent(this, &Tracer::preEvent);
128  iRegistry.watchPostEvent(this, &Tracer::postEvent);
129 
130  iRegistry.watchPrePathEvent(this, &Tracer::prePathEvent);
131  iRegistry.watchPostPathEvent(this, &Tracer::postPathEvent);
132 
133  iRegistry.watchPreModuleConstruction(this, &Tracer::preModuleConstruction);
134  iRegistry.watchPostModuleConstruction(this, &Tracer::postModuleConstruction);
135 
136  iRegistry.watchPreModuleBeginJob(this, &Tracer::preModuleBeginJob);
137  iRegistry.watchPostModuleBeginJob(this, &Tracer::postModuleBeginJob);
138 
139  iRegistry.watchPreModuleEndJob(this, &Tracer::preModuleEndJob);
140  iRegistry.watchPostModuleEndJob(this, &Tracer::postModuleEndJob);
141 
142  iRegistry.watchPreModuleEvent(this, &Tracer::preModuleEvent);
143  iRegistry.watchPostModuleEvent(this, &Tracer::postModuleEvent);
144  iRegistry.watchPreModuleEventDelayedGet(this, &Tracer::preModuleEventDelayedGet);
145  iRegistry.watchPostModuleEventDelayedGet(this, &Tracer::postModuleEventDelayedGet);
146 
147  iRegistry.watchPreModuleStreamBeginRun(this, &Tracer::preModuleStreamBeginRun);
148  iRegistry.watchPostModuleStreamBeginRun(this, &Tracer::postModuleStreamBeginRun);
149  iRegistry.watchPreModuleStreamEndRun(this, &Tracer::preModuleStreamEndRun);
150  iRegistry.watchPostModuleStreamEndRun(this, &Tracer::postModuleStreamEndRun);
151 
152  iRegistry.watchPreModuleStreamBeginLumi(this, &Tracer::preModuleStreamBeginLumi);
153  iRegistry.watchPostModuleStreamBeginLumi(this, &Tracer::postModuleStreamBeginLumi);
154  iRegistry.watchPreModuleStreamEndLumi(this, &Tracer::preModuleStreamEndLumi);
155  iRegistry.watchPostModuleStreamEndLumi(this, &Tracer::postModuleStreamEndLumi);
156 
157  iRegistry.watchPreModuleGlobalBeginRun(this, &Tracer::preModuleGlobalBeginRun);
158  iRegistry.watchPostModuleGlobalBeginRun(this, &Tracer::postModuleGlobalBeginRun);
159  iRegistry.watchPreModuleGlobalEndRun(this, &Tracer::preModuleGlobalEndRun);
160  iRegistry.watchPostModuleGlobalEndRun(this, &Tracer::postModuleGlobalEndRun);
161 
162  iRegistry.watchPreModuleGlobalBeginLumi(this, &Tracer::preModuleGlobalBeginLumi);
163  iRegistry.watchPostModuleGlobalBeginLumi(this, &Tracer::postModuleGlobalBeginLumi);
164  iRegistry.watchPreModuleGlobalEndLumi(this, &Tracer::preModuleGlobalEndLumi);
165  iRegistry.watchPostModuleGlobalEndLumi(this, &Tracer::postModuleGlobalEndLumi);
166 
167  iRegistry.watchPreSourceConstruction(this, &Tracer::preSourceConstruction);
168  iRegistry.watchPostSourceConstruction(this, &Tracer::postSourceConstruction);
169 
170  iRegistry.preSourceEarlyTerminationSignal_.connect([this](edm::TerminationOrigin iOrigin) {
171  LogAbsolute out("Tracer");
172  out << TimeStamper(printTimestamps_);
173  out << indention_ << indention_ << " early termination before processing transition";
174  });
175  iRegistry.preStreamEarlyTerminationSignal_.connect([this](edm::StreamContext const& iContext, edm::TerminationOrigin iOrigin) {
176  LogAbsolute out("Tracer");
177  out << TimeStamper(printTimestamps_);
178  if(iContext.eventID().luminosityBlock() ==0) {
179  out << indention_ << indention_ << " early termination of run: stream = " << iContext.streamID()
180  <<" run = " << iContext.eventID().run();
181  }else {
182  if(iContext.eventID().event() == 0) {
183  out << indention_ << indention_ << " early termination of stream lumi: stream = " << iContext.streamID()
184  <<" run = " << iContext.eventID().run()
185  << " lumi = " << iContext.eventID().luminosityBlock() ;
186  } else {
187  out << indention_ << indention_ << " early termination of event: stream = " << iContext.streamID()
188  <<" run = " << iContext.eventID().run()
189  << " lumi = " << iContext.eventID().luminosityBlock()
190  << " event = "<< iContext.eventID().event();
191 
192  }
193  }
194  out<< " : time = " << iContext.timestamp().value();
195 
196  });
197  iRegistry.preGlobalEarlyTerminationSignal_.connect([this](edm::GlobalContext const& iContext, edm::TerminationOrigin iOrigin) {
198  LogAbsolute out("Tracer");
199  out << TimeStamper(printTimestamps_);
200  if(iContext.luminosityBlockID().value() ==0) {
201  out << indention_ << indention_ << " early termination of global run " << iContext.luminosityBlockID().run();
202  }else {
203  out << indention_ << indention_ << " early termination of global lumi run = " << iContext.luminosityBlockID().run()
204  << " lumi = " << iContext.luminosityBlockID().luminosityBlock() ;
205 
206  }
207  out<< " : time = " << iContext.timestamp().value();
208  });
209 }
void preCloseFile(std::string const &lfn, bool primary)
Definition: Tracer.cc:374
RunNumber_t run() const
Definition: EventID.h:39
EventNumber_t event() const
Definition: EventID.h:41
void postSourceRun()
Definition: Tracer.cc:353
boost::uint64_t value() const
void postModuleGlobalBeginRun(GlobalContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:918
void postModuleGlobalBeginLumi(GlobalContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:978
void postModuleStreamEndLumi(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:888
void preModuleGlobalBeginLumi(GlobalContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:963
void postModuleConstruction(ModuleDescription const &md)
Definition: Tracer.cc:667
void postModuleEndStream(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:425
void postModuleGlobalEndLumi(GlobalContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:1008
void preallocate(service::SystemBounds const &)
Definition: Tracer.cc:224
LuminosityBlockID const & luminosityBlockID() const
Definition: GlobalContext.h:52
void postStreamBeginLumi(StreamContext const &)
Definition: Tracer.cc:580
void preModuleGlobalEndLumi(GlobalContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:993
void preModuleStreamBeginLumi(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:843
void preGlobalEndLumi(GlobalContext const &)
Definition: Tracer.cc:547
void preModuleEndJob(ModuleDescription const &md)
Definition: Tracer.cc:699
void preModuleConstruction(ModuleDescription const &md)
Definition: Tracer.cc:657
void preBeginJob(PathsAndConsumesOfModulesBase const &, ProcessContext const &)
Definition: Tracer.cc:231
void postStreamEndRun(StreamContext const &)
Definition: Tracer.cc:514
void postGlobalEndLumi(GlobalContext const &)
Definition: Tracer.cc:558
LuminosityBlockNumber_t luminosityBlock() const
Definition: EventID.h:40
void postModuleBeginJob(ModuleDescription const &md)
Definition: Tracer.cc:688
void postModuleStreamEndRun(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:828
void postCloseFile(std::string const &, bool)
Definition: Tracer.cc:381
Timestamp const & timestamp() const
Definition: GlobalContext.h:55
void preStreamEndLumi(StreamContext const &)
Definition: Tracer.cc:591
void preOpenFile(std::string const &, bool)
Definition: Tracer.cc:358
void preGlobalBeginRun(GlobalContext const &)
Definition: Tracer.cc:437
void preSourceEvent(StreamID)
Definition: Tracer.cc:328
void preGlobalEndRun(GlobalContext const &)
Definition: Tracer.cc:459
void preModuleStreamEndLumi(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:873
void preModuleStreamBeginRun(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:783
void prePathEvent(StreamContext const &, PathContext const &)
Definition: Tracer.cc:635
void postModuleStreamBeginLumi(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:858
RunNumber_t run() const
bool dumpPathsAndConsumes_
Definition: Tracer.h:151
void preModuleGlobalEndRun(GlobalContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:933
void postStreamBeginRun(StreamContext const &)
Definition: Tracer.cc:492
void preStreamEndRun(StreamContext const &)
Definition: Tracer.cc:503
void postOpenFile(std::string const &, bool)
Definition: Tracer.cc:366
void postPathEvent(StreamContext const &, PathContext const &, HLTPathStatus const &)
Definition: Tracer.cc:646
StreamID const & streamID() const
Definition: StreamContext.h:57
tuple out
Definition: dbtoconf.py:99
void postModuleEventDelayedGet(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:767
void preSourceLumi()
Definition: Tracer.cc:338
void postSourceEvent(StreamID)
Definition: Tracer.cc:333
std::string indention_
Definition: Tracer.h:148
LuminosityBlockNumber_t luminosityBlock() const
void preSourceConstruction(ModuleDescription const &md)
Definition: Tracer.cc:1023
void preModuleEvent(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:721
void preModuleBeginStream(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:389
void postGlobalBeginRun(GlobalContext const &)
Definition: Tracer.cc:448
void postGlobalEndRun(GlobalContext const &)
Definition: Tracer.cc:470
void postGlobalBeginLumi(GlobalContext const &)
Definition: Tracer.cc:536
void preEvent(StreamContext const &)
Definition: Tracer.cc:613
void preStreamBeginLumi(StreamContext const &)
Definition: Tracer.cc:569
void postModuleEndJob(ModuleDescription const &md)
Definition: Tracer.cc:710
void preModuleEndStream(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:413
void postModuleEvent(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:736
EventID const & eventID() const
Definition: StreamContext.h:59
void preModuleEventDelayedGet(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:752
void postModuleBeginStream(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:401
bool dumpNonModuleContext_
Definition: Tracer.h:150
void preModuleBeginJob(ModuleDescription const &md)
Definition: Tracer.cc:677
void postStreamEndLumi(StreamContext const &)
Definition: Tracer.cc:602
void preModuleStreamEndRun(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:813
void postEvent(StreamContext const &)
Definition: Tracer.cc:624
void preStreamBeginRun(StreamContext const &)
Definition: Tracer.cc:481
TimeValue_t value() const
Definition: Timestamp.h:56
void postModuleStreamBeginRun(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:798
void postSourceLumi()
Definition: Tracer.cc:343
void preGlobalBeginLumi(GlobalContext const &)
Definition: Tracer.cc:525
void postModuleGlobalEndRun(GlobalContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:948
void postSourceConstruction(ModuleDescription const &md)
Definition: Tracer.cc:1034
std::set< std::string > dumpContextForLabels_
Definition: Tracer.h:149
void preModuleGlobalBeginRun(GlobalContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:903
Timestamp const & timestamp() const
Definition: StreamContext.h:62

Member Function Documentation

void Tracer::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 212 of file Tracer.cc.

References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::addUntracked(), edm::ConfigurationDescriptions::setComment(), and AlCaHLTBitMon_QueryRunRegistry::string.

212  {
214  desc.addUntracked<std::string>("indention", "++")->setComment("Prefix characters for output. The characters are repeated to form the indentation.");
215  desc.addUntracked<std::vector<std::string>>("dumpContextForLabels", std::vector<std::string>{})->setComment("Prints context information to cout for the module transitions associated with these modules' labels");
216  desc.addUntracked<bool>("dumpNonModuleContext", false)->setComment("Prints context information to cout for the transitions not associated with any module label");
217  desc.addUntracked<bool>("dumpPathsAndConsumes", false)->setComment("Prints information to cout about paths, endpaths, products consumed by modules and the dependencies between modules created by the products they consume");
218  desc.addUntracked<bool>("printTimestamps", false)->setComment("Prints a time stamp for every transition");
219  descriptions.add("Tracer", desc);
220  descriptions.setComment("This service prints each phase the framework is processing, e.g. constructing a module,running a module, etc.");
221 }
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
void setComment(std::string const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void Tracer::postBeginJob ( )

Definition at line 318 of file Tracer.cc.

References indention_, and printTimestamps_.

Referenced by Tracer().

318  {
319  LogAbsolute("Tracer") << TimeStamper(printTimestamps_) << indention_ << " finished: begin job";
320 }
std::string indention_
Definition: Tracer.h:148
void Tracer::postCloseFile ( std::string const &  lfn,
bool  b 
)

Definition at line 381 of file Tracer.cc.

References b, dumpNonModuleContext_, indention_, dbtoconf::out, and printTimestamps_.

Referenced by Tracer().

381  {
382  LogAbsolute out("Tracer");
383  out << TimeStamper(printTimestamps_);
384  out << indention_ << indention_ << " finished: close input file: lfn = " << lfn;
385  if(dumpNonModuleContext_) out << " usedFallBack = " << b;
386 }
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
double b
Definition: hdecay.h:120
bool dumpNonModuleContext_
Definition: Tracer.h:150
void Tracer::postEndJob ( )

Definition at line 323 of file Tracer.cc.

References indention_, and printTimestamps_.

Referenced by Tracer().

323  {
324  LogAbsolute("Tracer") << TimeStamper(printTimestamps_) << indention_ << " finished: end job";
325 }
std::string indention_
Definition: Tracer.h:148
void Tracer::postEvent ( StreamContext const &  sc)

Definition at line 624 of file Tracer.cc.

References dumpNonModuleContext_, edm::EventID::event(), edm::StreamContext::eventID(), indention_, edm::EventID::luminosityBlock(), dbtoconf::out, printTimestamps_, edm::EventID::run(), edm::StreamContext::streamID(), edm::StreamContext::timestamp(), and edm::Timestamp::value().

Referenced by Tracer().

624  {
625  LogAbsolute out("Tracer");
626  out << TimeStamper(printTimestamps_);
627  out << indention_ << indention_ << " finished: processing event : stream = " << sc.streamID() << " run = " << sc.eventID().run()
628  << " lumi = " << sc.eventID().luminosityBlock() << " event = " << sc.eventID().event() << " time = " << sc.timestamp().value();
630  out << "\n" << sc;
631  }
632 }
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
bool dumpNonModuleContext_
Definition: Tracer.h:150
void Tracer::postGlobalBeginLumi ( GlobalContext const &  gc)

Definition at line 536 of file Tracer.cc.

References dumpNonModuleContext_, indention_, edm::LuminosityBlockID::luminosityBlock(), edm::GlobalContext::luminosityBlockID(), dbtoconf::out, printTimestamps_, edm::LuminosityBlockID::run(), edm::GlobalContext::timestamp(), and edm::Timestamp::value().

Referenced by Tracer().

536  {
537  LogAbsolute out("Tracer");
538  out << TimeStamper(printTimestamps_);
539  out << indention_ << indention_ << " finished: global begin lumi: run = " << gc.luminosityBlockID().run()
540  << " lumi = " << gc.luminosityBlockID().luminosityBlock() << " time = " << gc.timestamp().value();
542  out << "\n" << gc;
543  }
544 }
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
bool dumpNonModuleContext_
Definition: Tracer.h:150
void Tracer::postGlobalBeginRun ( GlobalContext const &  gc)

Definition at line 448 of file Tracer.cc.

References dumpNonModuleContext_, indention_, edm::GlobalContext::luminosityBlockID(), dbtoconf::out, printTimestamps_, edm::LuminosityBlockID::run(), edm::GlobalContext::timestamp(), and edm::Timestamp::value().

Referenced by Tracer().

448  {
449  LogAbsolute out("Tracer");
450  out << TimeStamper(printTimestamps_);
451  out << indention_ << indention_ << " finished: global begin run " << gc.luminosityBlockID().run()
452  << " : time = " << gc.timestamp().value();
454  out << "\n" << gc;
455  }
456 }
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
bool dumpNonModuleContext_
Definition: Tracer.h:150
void Tracer::postGlobalEndLumi ( GlobalContext const &  gc)

Definition at line 558 of file Tracer.cc.

References dumpNonModuleContext_, indention_, edm::LuminosityBlockID::luminosityBlock(), edm::GlobalContext::luminosityBlockID(), dbtoconf::out, printTimestamps_, edm::LuminosityBlockID::run(), edm::GlobalContext::timestamp(), and edm::Timestamp::value().

Referenced by Tracer().

558  {
559  LogAbsolute out("Tracer");
560  out << TimeStamper(printTimestamps_);
561  out << indention_ << indention_ << " finished: global end lumi: run = " << gc.luminosityBlockID().run()
562  << " lumi = " << gc.luminosityBlockID().luminosityBlock() << " time = " << gc.timestamp().value();
564  out << "\n" << gc;
565  }
566 }
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
bool dumpNonModuleContext_
Definition: Tracer.h:150
void Tracer::postGlobalEndRun ( GlobalContext const &  gc)

Definition at line 470 of file Tracer.cc.

References dumpNonModuleContext_, indention_, edm::GlobalContext::luminosityBlockID(), dbtoconf::out, printTimestamps_, edm::LuminosityBlockID::run(), edm::GlobalContext::timestamp(), and edm::Timestamp::value().

Referenced by Tracer().

470  {
471  LogAbsolute out("Tracer");
472  out << TimeStamper(printTimestamps_);
473  out << indention_ << indention_ << " finished: global end run " << gc.luminosityBlockID().run()
474  << " : time = " << gc.timestamp().value();
476  out << "\n" << gc;
477  }
478 }
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
bool dumpNonModuleContext_
Definition: Tracer.h:150
void Tracer::postModuleBeginJob ( ModuleDescription const &  md)

Definition at line 688 of file Tracer.cc.

References dumpContextForLabels_, edm::ModuleDescription::id(), indention_, edm::ModuleDescription::moduleLabel(), dbtoconf::out, and printTimestamps_.

Referenced by Tracer().

688  {
689  LogAbsolute out("Tracer");
690  out << TimeStamper(printTimestamps_);
691  out << indention_ << indention_;
692  out << " finished: begin job for module with label '" << desc.moduleLabel() << "' id = " << desc.id();
693  if(dumpContextForLabels_.find(desc.moduleLabel()) != dumpContextForLabels_.end()) {
694  out << "\n" << desc;
695  }
696 }
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
std::set< std::string > dumpContextForLabels_
Definition: Tracer.h:149
void Tracer::postModuleBeginStream ( StreamContext const &  sc,
ModuleCallingContext const &  mcc 
)

Definition at line 401 of file Tracer.cc.

References dumpContextForLabels_, edm::ModuleDescription::id(), indention_, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleLabel(), dbtoconf::out, printTimestamps_, and edm::StreamContext::streamID().

Referenced by Tracer().

401  {
402  ModuleDescription const& desc = *mcc.moduleDescription();
403  LogAbsolute out("Tracer");
404  out << TimeStamper(printTimestamps_);
405  out << indention_ << indention_ << " finished: begin stream for module: stream = " << sc.streamID() << " label = '" << desc.moduleLabel() << "' id = " << desc.id();
406  if(dumpContextForLabels_.find(desc.moduleLabel()) != dumpContextForLabels_.end()) {
407  out << "\n" << sc;
408  out << mcc;
409  }
410 }
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
std::set< std::string > dumpContextForLabels_
Definition: Tracer.h:149
void Tracer::postModuleConstruction ( ModuleDescription const &  md)

Definition at line 667 of file Tracer.cc.

References dumpContextForLabels_, edm::ModuleDescription::id(), indention_, edm::ModuleDescription::moduleLabel(), dbtoconf::out, and printTimestamps_.

Referenced by Tracer().

667  {
668  LogAbsolute out("Tracer");
669  out << TimeStamper(printTimestamps_);
670  out << indention_ << indention_ << " finished: constructing module with label '" << desc.moduleLabel() << "' id = " << desc.id();
671  if(dumpContextForLabels_.find(desc.moduleLabel()) != dumpContextForLabels_.end()) {
672  out << "\n" << desc;
673  }
674 }
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
std::set< std::string > dumpContextForLabels_
Definition: Tracer.h:149
void Tracer::postModuleEndJob ( ModuleDescription const &  md)

Definition at line 710 of file Tracer.cc.

References dumpContextForLabels_, edm::ModuleDescription::id(), indention_, edm::ModuleDescription::moduleLabel(), dbtoconf::out, and printTimestamps_.

Referenced by Tracer().

710  {
711  LogAbsolute out("Tracer");
712  out << TimeStamper(printTimestamps_);
713  out << indention_ << indention_;
714  out << " finished: end job for module with label '" << desc.moduleLabel() << "' id = " << desc.id();
715  if(dumpContextForLabels_.find(desc.moduleLabel()) != dumpContextForLabels_.end()) {
716  out << "\n" << desc;
717  }
718 }
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
std::set< std::string > dumpContextForLabels_
Definition: Tracer.h:149
void Tracer::postModuleEndStream ( StreamContext const &  sc,
ModuleCallingContext const &  mcc 
)

Definition at line 425 of file Tracer.cc.

References dumpContextForLabels_, edm::ModuleDescription::id(), indention_, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleLabel(), dbtoconf::out, printTimestamps_, and edm::StreamContext::streamID().

Referenced by Tracer().

425  {
426  ModuleDescription const& desc = *mcc.moduleDescription();
427  LogAbsolute out("Tracer");
428  out << TimeStamper(printTimestamps_);
429  out << indention_ << indention_ << " finished: end stream for module: stream = " << sc.streamID() << " label = '" << desc.moduleLabel() << "' id = " << desc.id();
430  if(dumpContextForLabels_.find(desc.moduleLabel()) != dumpContextForLabels_.end()) {
431  out << "\n" << sc;
432  out << mcc;
433  }
434 }
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
std::set< std::string > dumpContextForLabels_
Definition: Tracer.h:149
void Tracer::postModuleEvent ( StreamContext const &  sc,
ModuleCallingContext const &  mcc 
)

Definition at line 736 of file Tracer.cc.

References edm::ModuleCallingContext::depth(), dumpContextForLabels_, i, edm::ModuleDescription::id(), indention_, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleLabel(), dbtoconf::out, printTimestamps_, and edm::StreamContext::streamID().

Referenced by Tracer().

736  {
737  LogAbsolute out("Tracer");
738  out << TimeStamper(printTimestamps_);
739  unsigned int nIndents = mcc.depth() + 4;
740  for(unsigned int i = 0; i < nIndents; ++i) {
741  out << indention_;
742  }
743  out << " finished: processing event for module: stream = " << sc.streamID() << " label = '" << mcc.moduleDescription()->moduleLabel() << "' id = " << mcc.moduleDescription()->id();
744  if(dumpContextForLabels_.find(mcc.moduleDescription()->moduleLabel()) != dumpContextForLabels_.end()) {
745  out << "\n" << sc;
746  out << mcc;
747  }
748 }
int i
Definition: DBlmapReader.cc:9
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
std::set< std::string > dumpContextForLabels_
Definition: Tracer.h:149
void Tracer::postModuleEventDelayedGet ( StreamContext const &  sc,
ModuleCallingContext const &  mcc 
)

Definition at line 767 of file Tracer.cc.

References edm::ModuleCallingContext::depth(), dumpContextForLabels_, i, edm::ModuleDescription::id(), indention_, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleLabel(), dbtoconf::out, printTimestamps_, and edm::StreamContext::streamID().

Referenced by Tracer().

767  {
768  LogAbsolute out("Tracer");
769  out << TimeStamper(printTimestamps_);
770  unsigned int nIndents = mcc.depth() + 4;
771  for(unsigned int i = 0; i < nIndents; ++i) {
772  out << indention_;
773  }
774  out << " finished: delayed processing event for module: stream = " << sc.streamID() << " label = '" << mcc.moduleDescription()->moduleLabel() << "' id = " << mcc.moduleDescription()->id();
775  if(dumpContextForLabels_.find(mcc.moduleDescription()->moduleLabel()) != dumpContextForLabels_.end()) {
776  out << "\n" << sc;
777  out << mcc;
778  }
779 }
int i
Definition: DBlmapReader.cc:9
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
std::set< std::string > dumpContextForLabels_
Definition: Tracer.h:149
void Tracer::postModuleGlobalBeginLumi ( GlobalContext const &  gc,
ModuleCallingContext const &  mcc 
)

Definition at line 978 of file Tracer.cc.

References edm::ModuleCallingContext::depth(), dumpContextForLabels_, i, edm::ModuleDescription::id(), indention_, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleLabel(), dbtoconf::out, and printTimestamps_.

Referenced by Tracer().

978  {
979  LogAbsolute out("Tracer");
980  out << TimeStamper(printTimestamps_);
981  unsigned int nIndents = mcc.depth() + 3;
982  for(unsigned int i = 0; i < nIndents; ++i) {
983  out << indention_;
984  }
985  out << " finished: global begin lumi for module: label = '" << mcc.moduleDescription()->moduleLabel() << "' id = " << mcc.moduleDescription()->id();
986  if(dumpContextForLabels_.find(mcc.moduleDescription()->moduleLabel()) != dumpContextForLabels_.end()) {
987  out << "\n" << gc;
988  out << mcc;
989  }
990 }
int i
Definition: DBlmapReader.cc:9
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
std::set< std::string > dumpContextForLabels_
Definition: Tracer.h:149
void Tracer::postModuleGlobalBeginRun ( GlobalContext const &  gc,
ModuleCallingContext const &  mcc 
)

Definition at line 918 of file Tracer.cc.

References edm::ModuleCallingContext::depth(), dumpContextForLabels_, i, edm::ModuleDescription::id(), indention_, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleLabel(), dbtoconf::out, and printTimestamps_.

Referenced by Tracer().

918  {
919  LogAbsolute out("Tracer");
920  out << TimeStamper(printTimestamps_);
921  unsigned int nIndents = mcc.depth() + 3;
922  for(unsigned int i = 0; i < nIndents; ++i) {
923  out << indention_;
924  }
925  out << " finished: global begin run for module: label = '" << mcc.moduleDescription()->moduleLabel() << "' id = " << mcc.moduleDescription()->id();
926  if(dumpContextForLabels_.find(mcc.moduleDescription()->moduleLabel()) != dumpContextForLabels_.end()) {
927  out << "\n" << gc;
928  out << mcc;
929  }
930 }
int i
Definition: DBlmapReader.cc:9
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
std::set< std::string > dumpContextForLabels_
Definition: Tracer.h:149
void Tracer::postModuleGlobalEndLumi ( GlobalContext const &  gc,
ModuleCallingContext const &  mcc 
)

Definition at line 1008 of file Tracer.cc.

References edm::ModuleCallingContext::depth(), dumpContextForLabels_, i, edm::ModuleDescription::id(), indention_, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleLabel(), dbtoconf::out, and printTimestamps_.

Referenced by Tracer().

1008  {
1009  LogAbsolute out("Tracer");
1010  out << TimeStamper(printTimestamps_);
1011  unsigned int nIndents = mcc.depth() + 3;
1012  for(unsigned int i = 0; i < nIndents; ++i) {
1013  out << indention_;
1014  }
1015  out << " finished: global end lumi for module: label = '" << mcc.moduleDescription()->moduleLabel() << "' id = " << mcc.moduleDescription()->id();
1016  if(dumpContextForLabels_.find(mcc.moduleDescription()->moduleLabel()) != dumpContextForLabels_.end()) {
1017  out << "\n" << gc;
1018  out << mcc;
1019  }
1020 }
int i
Definition: DBlmapReader.cc:9
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
std::set< std::string > dumpContextForLabels_
Definition: Tracer.h:149
void Tracer::postModuleGlobalEndRun ( GlobalContext const &  gc,
ModuleCallingContext const &  mcc 
)

Definition at line 948 of file Tracer.cc.

References edm::ModuleCallingContext::depth(), dumpContextForLabels_, i, edm::ModuleDescription::id(), indention_, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleLabel(), dbtoconf::out, and printTimestamps_.

Referenced by Tracer().

948  {
949  LogAbsolute out("Tracer");
950  out << TimeStamper(printTimestamps_);
951  unsigned int nIndents = mcc.depth() + 3;
952  for(unsigned int i = 0; i < nIndents; ++i) {
953  out << indention_;
954  }
955  out << " finished: global end run for module: label = '" << mcc.moduleDescription()->moduleLabel() << "' id = " << mcc.moduleDescription()->id();
956  if(dumpContextForLabels_.find(mcc.moduleDescription()->moduleLabel()) != dumpContextForLabels_.end()) {
957  out << "\n" << gc;
958  out << mcc;
959  }
960 }
int i
Definition: DBlmapReader.cc:9
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
std::set< std::string > dumpContextForLabels_
Definition: Tracer.h:149
void Tracer::postModuleStreamBeginLumi ( StreamContext const &  sc,
ModuleCallingContext const &  mcc 
)

Definition at line 858 of file Tracer.cc.

References edm::ModuleCallingContext::depth(), dumpContextForLabels_, i, edm::ModuleDescription::id(), indention_, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleLabel(), dbtoconf::out, printTimestamps_, and edm::StreamContext::streamID().

Referenced by Tracer().

858  {
859  LogAbsolute out("Tracer");
860  out << TimeStamper(printTimestamps_);
861  unsigned int nIndents = mcc.depth() + 3;
862  for(unsigned int i = 0; i < nIndents; ++i) {
863  out << indention_;
864  }
865  out << " finished: begin lumi for module: stream = " << sc.streamID() << " label = '" << mcc.moduleDescription()->moduleLabel() << "' id = " << mcc.moduleDescription()->id();
866  if(dumpContextForLabels_.find(mcc.moduleDescription()->moduleLabel()) != dumpContextForLabels_.end()) {
867  out << "\n" << sc;
868  out << mcc;
869  }
870 }
int i
Definition: DBlmapReader.cc:9
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
std::set< std::string > dumpContextForLabels_
Definition: Tracer.h:149
void Tracer::postModuleStreamBeginRun ( StreamContext const &  sc,
ModuleCallingContext const &  mcc 
)

Definition at line 798 of file Tracer.cc.

References edm::ModuleCallingContext::depth(), dumpContextForLabels_, i, edm::ModuleDescription::id(), indention_, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleLabel(), dbtoconf::out, printTimestamps_, and edm::StreamContext::streamID().

Referenced by Tracer().

798  {
799  LogAbsolute out("Tracer");
800  out << TimeStamper(printTimestamps_);
801  unsigned int nIndents = mcc.depth() + 3;
802  for(unsigned int i = 0; i < nIndents; ++i) {
803  out << indention_;
804  }
805  out << " finished: begin run for module: stream = " << sc.streamID() << " label = '" << mcc.moduleDescription()->moduleLabel() << "' id = " << mcc.moduleDescription()->id();
806  if(dumpContextForLabels_.find(mcc.moduleDescription()->moduleLabel()) != dumpContextForLabels_.end()) {
807  out << "\n" << sc;
808  out << mcc;
809  }
810 }
int i
Definition: DBlmapReader.cc:9
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
std::set< std::string > dumpContextForLabels_
Definition: Tracer.h:149
void Tracer::postModuleStreamEndLumi ( StreamContext const &  sc,
ModuleCallingContext const &  mcc 
)

Definition at line 888 of file Tracer.cc.

References edm::ModuleCallingContext::depth(), dumpContextForLabels_, i, edm::ModuleDescription::id(), indention_, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleLabel(), dbtoconf::out, printTimestamps_, and edm::StreamContext::streamID().

Referenced by Tracer().

888  {
889  LogAbsolute out("Tracer");
890  out << TimeStamper(printTimestamps_);
891  unsigned int nIndents = mcc.depth() + 3;
892  for(unsigned int i = 0; i < nIndents; ++i) {
893  out << indention_;
894  }
895  out << " finished: end lumi for module: stream = " << sc.streamID() << " label = '"<< mcc.moduleDescription()->moduleLabel() << "' id = " << mcc.moduleDescription()->id();
896  if(dumpContextForLabels_.find(mcc.moduleDescription()->moduleLabel()) != dumpContextForLabels_.end()) {
897  out << "\n" << sc;
898  out << mcc;
899  }
900 }
int i
Definition: DBlmapReader.cc:9
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
std::set< std::string > dumpContextForLabels_
Definition: Tracer.h:149
void Tracer::postModuleStreamEndRun ( StreamContext const &  sc,
ModuleCallingContext const &  mcc 
)

Definition at line 828 of file Tracer.cc.

References edm::ModuleCallingContext::depth(), dumpContextForLabels_, i, edm::ModuleDescription::id(), indention_, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleLabel(), dbtoconf::out, printTimestamps_, and edm::StreamContext::streamID().

Referenced by Tracer().

828  {
829  LogAbsolute out("Tracer");
830  out << TimeStamper(printTimestamps_);
831  unsigned int nIndents = mcc.depth() + 3;
832  for(unsigned int i = 0; i < nIndents; ++i) {
833  out << indention_;
834  }
835  out << " finished: end run for module: stream = " << sc.streamID() << " label = '" << mcc.moduleDescription()->moduleLabel() << "' id = " << mcc.moduleDescription()->id();
836  if(dumpContextForLabels_.find(mcc.moduleDescription()->moduleLabel()) != dumpContextForLabels_.end()) {
837  out << "\n" << sc;
838  out << mcc;
839  }
840 }
int i
Definition: DBlmapReader.cc:9
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
std::set< std::string > dumpContextForLabels_
Definition: Tracer.h:149
void Tracer::postOpenFile ( std::string const &  lfn,
bool  b 
)

Definition at line 366 of file Tracer.cc.

References b, dumpNonModuleContext_, indention_, dbtoconf::out, and printTimestamps_.

Referenced by Tracer().

366  {
367  LogAbsolute out("Tracer");
368  out << TimeStamper(printTimestamps_);
369  out << indention_ << indention_ << " finished: open input file: lfn = " << lfn;
370  if(dumpNonModuleContext_) out << " usedFallBack = " << b;
371 }
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
double b
Definition: hdecay.h:120
bool dumpNonModuleContext_
Definition: Tracer.h:150
void Tracer::postPathEvent ( StreamContext const &  sc,
PathContext const &  pc,
HLTPathStatus const &  hlts 
)

Definition at line 646 of file Tracer.cc.

References dumpNonModuleContext_, indention_, dbtoconf::out, edm::PathContext::pathName(), printTimestamps_, and edm::StreamContext::streamID().

Referenced by Tracer().

646  {
647  LogAbsolute out("Tracer");
648  out << TimeStamper(printTimestamps_);
649  out << indention_ << indention_ << indention_ << " finished: processing path '" << pc.pathName() << "' : stream = " << sc.streamID();
651  out << "\n" << sc;
652  out << pc;
653  }
654 }
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
bool dumpNonModuleContext_
Definition: Tracer.h:150
void Tracer::postSourceConstruction ( ModuleDescription const &  md)

Definition at line 1034 of file Tracer.cc.

References dumpNonModuleContext_, indention_, edm::ModuleDescription::moduleName(), dbtoconf::out, and printTimestamps_.

Referenced by Tracer().

1034  {
1035  LogAbsolute out("Tracer");
1036  out << TimeStamper(printTimestamps_);
1037  out << indention_;
1038  out << " finished: constructing source: " << desc.moduleName();
1039  if(dumpNonModuleContext_) {
1040  out << "\n" << desc;
1041  }
1042 }
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
bool dumpNonModuleContext_
Definition: Tracer.h:150
void Tracer::postSourceEvent ( StreamID  sid)

Definition at line 333 of file Tracer.cc.

References indention_, and printTimestamps_.

Referenced by Tracer().

333  {
334  LogAbsolute("Tracer") << TimeStamper(printTimestamps_) << indention_ << indention_ << " finished: source event";
335 }
std::string indention_
Definition: Tracer.h:148
void Tracer::postSourceLumi ( )

Definition at line 343 of file Tracer.cc.

References indention_, and printTimestamps_.

Referenced by Tracer().

343  {
344  LogAbsolute("Tracer") << TimeStamper(printTimestamps_) << indention_ << indention_ << " finished: source lumi";
345 }
std::string indention_
Definition: Tracer.h:148
void Tracer::postSourceRun ( )

Definition at line 353 of file Tracer.cc.

References indention_, and printTimestamps_.

Referenced by Tracer().

353  {
354  LogAbsolute("Tracer") << TimeStamper(printTimestamps_) << indention_ << indention_ << " finished: source run";
355 }
std::string indention_
Definition: Tracer.h:148
void Tracer::postStreamBeginLumi ( StreamContext const &  sc)

Definition at line 580 of file Tracer.cc.

References dumpNonModuleContext_, edm::StreamContext::eventID(), indention_, edm::EventID::luminosityBlock(), dbtoconf::out, printTimestamps_, edm::EventID::run(), edm::StreamContext::streamID(), edm::StreamContext::timestamp(), and edm::Timestamp::value().

Referenced by Tracer().

580  {
581  LogAbsolute out("Tracer");
582  out << TimeStamper(printTimestamps_);
583  out << indention_ << indention_ << " finished: begin lumi: stream = " << sc.streamID() << " run = " << sc.eventID().run()
584  << " lumi = " << sc.eventID().luminosityBlock() << " time = " << sc.timestamp().value();
586  out << "\n" << sc;
587  }
588 }
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
bool dumpNonModuleContext_
Definition: Tracer.h:150
void Tracer::postStreamBeginRun ( StreamContext const &  sc)

Definition at line 492 of file Tracer.cc.

References dumpNonModuleContext_, edm::StreamContext::eventID(), indention_, dbtoconf::out, printTimestamps_, edm::EventID::run(), edm::StreamContext::streamID(), edm::StreamContext::timestamp(), and edm::Timestamp::value().

Referenced by Tracer().

492  {
493  LogAbsolute out("Tracer");
494  out << TimeStamper(printTimestamps_);
495  out << indention_ << indention_ << " finished: begin run: stream = " << sc.streamID() << " run = " << sc.eventID().run()
496  << " time = " << sc.timestamp().value();
498  out << "\n" << sc;
499  }
500 }
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
bool dumpNonModuleContext_
Definition: Tracer.h:150
void Tracer::postStreamEndLumi ( StreamContext const &  sc)

Definition at line 602 of file Tracer.cc.

References dumpNonModuleContext_, edm::StreamContext::eventID(), indention_, edm::EventID::luminosityBlock(), dbtoconf::out, printTimestamps_, edm::EventID::run(), edm::StreamContext::streamID(), edm::StreamContext::timestamp(), and edm::Timestamp::value().

Referenced by Tracer().

602  {
603  LogAbsolute out("Tracer");
604  out << TimeStamper(printTimestamps_);
605  out << indention_ << indention_ << " finished: end lumi: stream = " << sc.streamID() << " run = " << sc.eventID().run()
606  << " lumi = " << sc.eventID().luminosityBlock() << " time = " << sc.timestamp().value();
608  out << "\n" << sc;
609  }
610 }
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
bool dumpNonModuleContext_
Definition: Tracer.h:150
void Tracer::postStreamEndRun ( StreamContext const &  sc)

Definition at line 514 of file Tracer.cc.

References dumpNonModuleContext_, edm::StreamContext::eventID(), indention_, dbtoconf::out, printTimestamps_, edm::EventID::run(), edm::StreamContext::streamID(), edm::StreamContext::timestamp(), and edm::Timestamp::value().

Referenced by Tracer().

514  {
515  LogAbsolute out("Tracer");
516  out << TimeStamper(printTimestamps_);
517  out << indention_ << indention_ << " finished: end run: stream = " << sc.streamID() << " run = " << sc.eventID().run()
518  << " time = " << sc.timestamp().value();
520  out << "\n" << sc;
521  }
522 }
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
bool dumpNonModuleContext_
Definition: Tracer.h:150
void Tracer::preallocate ( service::SystemBounds const &  bounds)

Definition at line 224 of file Tracer.cc.

References indention_, edm::service::SystemBounds::maxNumberOfConcurrentLuminosityBlocks(), edm::service::SystemBounds::maxNumberOfConcurrentRuns(), edm::service::SystemBounds::maxNumberOfStreams(), and printTimestamps_.

Referenced by Tracer().

224  {
225  LogAbsolute("Tracer") << TimeStamper(printTimestamps_) << indention_ << " preallocate: " << bounds.maxNumberOfConcurrentRuns() << " concurrent runs, "
226  << bounds.maxNumberOfConcurrentLuminosityBlocks() << " concurrent luminosity sections, "
227  << bounds.maxNumberOfStreams() << " streams";
228 }
std::string indention_
Definition: Tracer.h:148
void Tracer::preBeginJob ( PathsAndConsumesOfModulesBase const &  pathsAndConsumes,
ProcessContext const &  pc 
)

Definition at line 231 of file Tracer.cc.

References edm::PathsAndConsumesOfModulesBase::allModules(), edm::PathsAndConsumesOfModulesBase::consumesInfo(), dumpPathsAndConsumes_, edm::ELEMENT_TYPE, edm::PathsAndConsumesOfModulesBase::endPaths(), Exception, indention_, info(), edm::InLumi, edm::InRun, j, python.rootplot.argparse::module, edm::PathsAndConsumesOfModulesBase::moduleDescription(), edm::PathsAndConsumesOfModulesBase::modulesOnEndPath(), edm::PathsAndConsumesOfModulesBase::modulesOnPath(), edm::PathsAndConsumesOfModulesBase::modulesWhoseProductsAreConsumedBy(), dbtoconf::out, fed_dqm_sourceclient-live_cfg::path, edm::PathsAndConsumesOfModulesBase::paths(), mergeAndRegister::paths, printTimestamps_, and edm::ProcessContext::processName().

Referenced by Tracer().

231  {
232  LogAbsolute out("Tracer");
233  out << TimeStamper(printTimestamps_) << indention_ << " starting: begin job";
235  out << "\n" << "Process name = " << pc.processName() << "\n";
236  out << "paths:\n";
237  std::vector<std::string> const& paths = pathsAndConsumes.paths();
238  for(auto const& path : paths) {
239  out << " " << path << "\n";
240  }
241  out << "end paths:\n";
242  std::vector<std::string> const& endpaths = pathsAndConsumes.endPaths();
243  for(auto const& endpath : endpaths) {
244  out << " " << endpath << "\n";
245  }
246  for(unsigned int j = 0; j < paths.size(); ++j) {
247  std::vector<ModuleDescription const*> const& modulesOnPath = pathsAndConsumes.modulesOnPath(j);
248  out << "modules on path " << paths.at(j) << ":\n";
249  for(auto const& desc : modulesOnPath) {
250  out << " " << desc->moduleLabel() << "\n";
251  }
252  }
253  for(unsigned int j = 0; j < endpaths.size(); ++j) {
254  std::vector<ModuleDescription const*> const& modulesOnEndPath = pathsAndConsumes.modulesOnEndPath(j);
255  out << "modules on end path " << endpaths.at(j) << ":\n";
256  for(auto const& desc : modulesOnEndPath) {
257  out << " " << desc->moduleLabel() << "\n";
258  }
259  }
260  std::vector<ModuleDescription const*> const& allModules = pathsAndConsumes.allModules();
261  out << "All modules and modules in the current process whose products they consume:\n";
262  out << "(This does not include modules from previous processes or the source)\n";
263  for(auto const& module : allModules) {
264  out << " " << module->moduleName() << "/\'" << module->moduleLabel() << "\'";
265  unsigned int moduleID = module->id();
266  if(pathsAndConsumes.moduleDescription(moduleID) != module) {
267  throw cms::Exception("TestFailure") << "Tracer::preBeginJob, moduleDescription returns incorrect value";
268  }
269  std::vector<ModuleDescription const*> const& modulesWhoseProductsAreConsumedBy =
270  pathsAndConsumes.modulesWhoseProductsAreConsumedBy(moduleID);
271  if(!modulesWhoseProductsAreConsumedBy.empty()) {
272  out << " consumes products from these modules:\n";
273  for(auto const& producingModule : modulesWhoseProductsAreConsumedBy) {
274  out << " " << producingModule->moduleName() << "/\'" << producingModule->moduleLabel() << "\'\n";
275  }
276  } else {
277  out << "\n";
278  }
279  }
280  out << "All modules (listed by class and label) and all their consumed products.\n";
281  out << "Consumed products are listed by type, label, instance, process.\n";
282  out << "For products not in the event, \'run\' or \'lumi\' is added to indicate the TTree they are from.\n";
283  out << "For products that are declared with mayConsume, \'may consume\' is added.\n";
284  out << "For products consumed for Views, \'element type\' is added\n";
285  out << "For products only read from previous processes, \'skip current process\' is added\n";
286  for(auto const* module : allModules) {
287  out << " " << module->moduleName() << "/\'" << module->moduleLabel() << "\'";
288  std::vector<ConsumesInfo> consumesInfo = pathsAndConsumes.consumesInfo(module->id());
289  if(!consumesInfo.empty()) {
290  out << " consumes:\n";
291  for(auto const& info : consumesInfo) {
292  out << " " << info.type() << " \'" << info.label() << "\' \'" << info.instance();
293  out << "\' \'" << info.process() << "\'";
294  if(info.branchType() == InLumi) {
295  out << ", lumi";
296  } else if(info.branchType() == InRun) {
297  out << ", run";
298  }
299  if(!info.alwaysGets()) {
300  out << ", may consume";
301  }
302  if(info.kindOfType() == ELEMENT_TYPE) {
303  out << ", element type";
304  }
305  if(info.skipCurrentProcess()) {
306  out << ", skip current process";
307  }
308  out << "\n";
309  }
310  } else {
311  out << "\n";
312  }
313  }
314  }
315 }
static const TGPicture * info(bool iBackgroundIsBlack)
int j
Definition: DBlmapReader.cc:9
bool dumpPathsAndConsumes_
Definition: Tracer.h:151
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
Definition: vlib.h:208
void Tracer::preCloseFile ( std::string const &  lfn,
bool  primary 
)

Definition at line 374 of file Tracer.cc.

References b, dumpNonModuleContext_, indention_, dbtoconf::out, and printTimestamps_.

Referenced by Tracer().

374  {
375  LogAbsolute out("Tracer");
376  out << TimeStamper(printTimestamps_);
377  out << indention_ << indention_ << " starting: close input file: lfn = " << lfn;
378  if(dumpNonModuleContext_) out << " usedFallBack = " << b;
379 }
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
double b
Definition: hdecay.h:120
bool dumpNonModuleContext_
Definition: Tracer.h:150
void Tracer::preEvent ( StreamContext const &  sc)

Definition at line 613 of file Tracer.cc.

References dumpNonModuleContext_, edm::EventID::event(), edm::StreamContext::eventID(), indention_, edm::EventID::luminosityBlock(), dbtoconf::out, printTimestamps_, edm::EventID::run(), edm::StreamContext::streamID(), edm::StreamContext::timestamp(), and edm::Timestamp::value().

Referenced by Tracer().

613  {
614  LogAbsolute out("Tracer");
615  out << TimeStamper(printTimestamps_);
616  out << indention_ << indention_ << " starting: processing event : stream = " << sc.streamID() << " run = " << sc.eventID().run()
617  << " lumi = " << sc.eventID().luminosityBlock() << " event = " << sc.eventID().event() << " time = " << sc.timestamp().value();
619  out << "\n" << sc;
620  }
621 }
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
bool dumpNonModuleContext_
Definition: Tracer.h:150
void Tracer::preGlobalBeginLumi ( GlobalContext const &  gc)

Definition at line 525 of file Tracer.cc.

References dumpNonModuleContext_, indention_, edm::LuminosityBlockID::luminosityBlock(), edm::GlobalContext::luminosityBlockID(), dbtoconf::out, printTimestamps_, edm::LuminosityBlockID::run(), edm::GlobalContext::timestamp(), and edm::Timestamp::value().

Referenced by Tracer().

525  {
526  LogAbsolute out("Tracer");
527  out << TimeStamper(printTimestamps_);
528  out << indention_ << indention_ << " starting: global begin lumi: run = " << gc.luminosityBlockID().run()
529  << " lumi = " << gc.luminosityBlockID().luminosityBlock() << " time = " << gc.timestamp().value();
531  out << "\n" << gc;
532  }
533 }
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
bool dumpNonModuleContext_
Definition: Tracer.h:150
void Tracer::preGlobalBeginRun ( GlobalContext const &  gc)

Definition at line 437 of file Tracer.cc.

References dumpNonModuleContext_, indention_, edm::GlobalContext::luminosityBlockID(), dbtoconf::out, printTimestamps_, edm::LuminosityBlockID::run(), edm::GlobalContext::timestamp(), and edm::Timestamp::value().

Referenced by Tracer().

437  {
438  LogAbsolute out("Tracer");
439  out << TimeStamper(printTimestamps_);
440  out << indention_ << indention_ << " starting: global begin run " << gc.luminosityBlockID().run()
441  << " : time = " << gc.timestamp().value();
443  out << "\n" << gc;
444  }
445 }
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
bool dumpNonModuleContext_
Definition: Tracer.h:150
void Tracer::preGlobalEndLumi ( GlobalContext const &  gc)

Definition at line 547 of file Tracer.cc.

References dumpNonModuleContext_, indention_, edm::LuminosityBlockID::luminosityBlock(), edm::GlobalContext::luminosityBlockID(), dbtoconf::out, printTimestamps_, edm::LuminosityBlockID::run(), edm::GlobalContext::timestamp(), and edm::Timestamp::value().

Referenced by Tracer().

547  {
548  LogAbsolute out("Tracer");
549  out << TimeStamper(printTimestamps_);
550  out << indention_ << indention_ << " starting: global end lumi: run = " << gc.luminosityBlockID().run()
551  << " lumi = " << gc.luminosityBlockID().luminosityBlock() << " time = " << gc.timestamp().value();
553  out << "\n" << gc;
554  }
555 }
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
bool dumpNonModuleContext_
Definition: Tracer.h:150
void Tracer::preGlobalEndRun ( GlobalContext const &  gc)

Definition at line 459 of file Tracer.cc.

References dumpNonModuleContext_, indention_, edm::GlobalContext::luminosityBlockID(), dbtoconf::out, printTimestamps_, edm::LuminosityBlockID::run(), edm::GlobalContext::timestamp(), and edm::Timestamp::value().

Referenced by Tracer().

459  {
460  LogAbsolute out("Tracer");
461  out << TimeStamper(printTimestamps_);
462  out << indention_ << indention_ << " starting: global end run " << gc.luminosityBlockID().run()
463  << " : time = " << gc.timestamp().value();
465  out << "\n" << gc;
466  }
467 }
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
bool dumpNonModuleContext_
Definition: Tracer.h:150
void Tracer::preModuleBeginJob ( ModuleDescription const &  md)

Definition at line 677 of file Tracer.cc.

References dumpContextForLabels_, edm::ModuleDescription::id(), indention_, edm::ModuleDescription::moduleLabel(), dbtoconf::out, and printTimestamps_.

Referenced by Tracer().

677  {
678  LogAbsolute out("Tracer");
679  out << TimeStamper(printTimestamps_);
680  out << indention_ << indention_;
681  out << " starting: begin job for module with label '" << desc.moduleLabel() << "' id = " << desc.id();
682  if(dumpContextForLabels_.find(desc.moduleLabel()) != dumpContextForLabels_.end()) {
683  out << "\n" << desc;
684  }
685 }
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
std::set< std::string > dumpContextForLabels_
Definition: Tracer.h:149
void Tracer::preModuleBeginStream ( StreamContext const &  sc,
ModuleCallingContext const &  mcc 
)

Definition at line 389 of file Tracer.cc.

References dumpContextForLabels_, edm::ModuleDescription::id(), indention_, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleLabel(), dbtoconf::out, printTimestamps_, and edm::StreamContext::streamID().

Referenced by Tracer().

389  {
390  ModuleDescription const& desc = *mcc.moduleDescription();
391  LogAbsolute out("Tracer");
392  out << TimeStamper(printTimestamps_);
393  out << indention_ << indention_ << " starting: begin stream for module: stream = " << sc.streamID() << " label = '" << desc.moduleLabel() << "' id = " << desc.id();
394  if(dumpContextForLabels_.find(desc.moduleLabel()) != dumpContextForLabels_.end()) {
395  out << "\n" << sc;
396  out << mcc;
397  }
398 }
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
std::set< std::string > dumpContextForLabels_
Definition: Tracer.h:149
void Tracer::preModuleConstruction ( ModuleDescription const &  md)

Definition at line 657 of file Tracer.cc.

References dumpContextForLabels_, edm::ModuleDescription::id(), indention_, edm::ModuleDescription::moduleLabel(), dbtoconf::out, and printTimestamps_.

Referenced by Tracer().

657  {
658  LogAbsolute out("Tracer");
659  out << TimeStamper(printTimestamps_);
660  out << indention_ << indention_ << " starting: constructing module with label '" << desc.moduleLabel() << "' id = " << desc.id();
661  if(dumpContextForLabels_.find(desc.moduleLabel()) != dumpContextForLabels_.end()) {
662  out << "\n" << desc;
663  }
664 }
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
std::set< std::string > dumpContextForLabels_
Definition: Tracer.h:149
void Tracer::preModuleEndJob ( ModuleDescription const &  md)

Definition at line 699 of file Tracer.cc.

References dumpContextForLabels_, edm::ModuleDescription::id(), indention_, edm::ModuleDescription::moduleLabel(), dbtoconf::out, and printTimestamps_.

Referenced by Tracer().

699  {
700  LogAbsolute out("Tracer");
701  out << TimeStamper(printTimestamps_);
702  out << indention_ << indention_;
703  out << " starting: end job for module with label '" << desc.moduleLabel() << "' id = " << desc.id();
704  if(dumpContextForLabels_.find(desc.moduleLabel()) != dumpContextForLabels_.end()) {
705  out << "\n" << desc;
706  }
707 }
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
std::set< std::string > dumpContextForLabels_
Definition: Tracer.h:149
void Tracer::preModuleEndStream ( StreamContext const &  sc,
ModuleCallingContext const &  mcc 
)

Definition at line 413 of file Tracer.cc.

References dumpContextForLabels_, edm::ModuleDescription::id(), indention_, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleLabel(), dbtoconf::out, printTimestamps_, and edm::StreamContext::streamID().

Referenced by Tracer().

413  {
414  ModuleDescription const& desc = *mcc.moduleDescription();
415  LogAbsolute out("Tracer");
416  out << TimeStamper(printTimestamps_);
417  out << indention_ << indention_ << " starting: end stream for module: stream = " << sc.streamID() << " label = '" << desc.moduleLabel() << "' id = " << desc.id();
418  if(dumpContextForLabels_.find(desc.moduleLabel()) != dumpContextForLabels_.end()) {
419  out << "\n" << sc;
420  out << mcc;
421  }
422 }
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
std::set< std::string > dumpContextForLabels_
Definition: Tracer.h:149
void Tracer::preModuleEvent ( StreamContext const &  sc,
ModuleCallingContext const &  mcc 
)

Definition at line 721 of file Tracer.cc.

References edm::ModuleCallingContext::depth(), dumpContextForLabels_, i, edm::ModuleDescription::id(), indention_, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleLabel(), dbtoconf::out, printTimestamps_, and edm::StreamContext::streamID().

Referenced by Tracer().

721  {
722  LogAbsolute out("Tracer");
723  out << TimeStamper(printTimestamps_);
724  unsigned int nIndents = mcc.depth() + 4;
725  for(unsigned int i = 0; i < nIndents; ++i) {
726  out << indention_;
727  }
728  out << " starting: processing event for module: stream = " << sc.streamID() << " label = '" << mcc.moduleDescription()->moduleLabel() << "' id = " << mcc.moduleDescription()->id();
729  if(dumpContextForLabels_.find(mcc.moduleDescription()->moduleLabel()) != dumpContextForLabels_.end()) {
730  out << "\n" << sc;
731  out << mcc;
732  }
733 }
int i
Definition: DBlmapReader.cc:9
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
std::set< std::string > dumpContextForLabels_
Definition: Tracer.h:149
void Tracer::preModuleEventDelayedGet ( StreamContext const &  sc,
ModuleCallingContext const &  mcc 
)

Definition at line 752 of file Tracer.cc.

References edm::ModuleCallingContext::depth(), dumpContextForLabels_, i, edm::ModuleDescription::id(), indention_, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleLabel(), dbtoconf::out, printTimestamps_, and edm::StreamContext::streamID().

Referenced by Tracer().

752  {
753  LogAbsolute out("Tracer");
754  out << TimeStamper(printTimestamps_);
755  unsigned int nIndents = mcc.depth() + 4;
756  for(unsigned int i = 0; i < nIndents; ++i) {
757  out << indention_;
758  }
759  out << " starting: delayed processing event for module: stream = " << sc.streamID() << " label = '" << mcc.moduleDescription()->moduleLabel() << "' id = " << mcc.moduleDescription()->id();
760  if(dumpContextForLabels_.find(mcc.moduleDescription()->moduleLabel()) != dumpContextForLabels_.end()) {
761  out << "\n" << sc;
762  out << mcc;
763  }
764 }
int i
Definition: DBlmapReader.cc:9
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
std::set< std::string > dumpContextForLabels_
Definition: Tracer.h:149
void Tracer::preModuleGlobalBeginLumi ( GlobalContext const &  gc,
ModuleCallingContext const &  mcc 
)

Definition at line 963 of file Tracer.cc.

References edm::ModuleCallingContext::depth(), dumpContextForLabels_, i, edm::ModuleDescription::id(), indention_, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleLabel(), dbtoconf::out, and printTimestamps_.

Referenced by Tracer().

963  {
964  LogAbsolute out("Tracer");
965  out << TimeStamper(printTimestamps_);
966  unsigned int nIndents = mcc.depth() + 3;
967  for(unsigned int i = 0; i < nIndents; ++i) {
968  out << indention_;
969  }
970  out << " starting: global begin lumi for module: label = '" << mcc.moduleDescription()->moduleLabel() << "' id = " << mcc.moduleDescription()->id();
971  if(dumpContextForLabels_.find(mcc.moduleDescription()->moduleLabel()) != dumpContextForLabels_.end()) {
972  out << "\n" << gc;
973  out << mcc;
974  }
975 }
int i
Definition: DBlmapReader.cc:9
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
std::set< std::string > dumpContextForLabels_
Definition: Tracer.h:149
void Tracer::preModuleGlobalBeginRun ( GlobalContext const &  gc,
ModuleCallingContext const &  mcc 
)

Definition at line 903 of file Tracer.cc.

References edm::ModuleCallingContext::depth(), dumpContextForLabels_, i, edm::ModuleDescription::id(), indention_, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleLabel(), dbtoconf::out, and printTimestamps_.

Referenced by Tracer().

903  {
904  LogAbsolute out("Tracer");
905  out << TimeStamper(printTimestamps_);
906  unsigned int nIndents = mcc.depth() + 3;
907  for(unsigned int i = 0; i < nIndents; ++i) {
908  out << indention_;
909  }
910  out << " starting: global begin run for module: label = '" << mcc.moduleDescription()->moduleLabel() << "' id = " << mcc.moduleDescription()->id();
911  if(dumpContextForLabels_.find(mcc.moduleDescription()->moduleLabel()) != dumpContextForLabels_.end()) {
912  out << "\n" << gc;
913  out << mcc;
914  }
915 }
int i
Definition: DBlmapReader.cc:9
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
std::set< std::string > dumpContextForLabels_
Definition: Tracer.h:149
void Tracer::preModuleGlobalEndLumi ( GlobalContext const &  gc,
ModuleCallingContext const &  mcc 
)

Definition at line 993 of file Tracer.cc.

References edm::ModuleCallingContext::depth(), dumpContextForLabels_, i, edm::ModuleDescription::id(), indention_, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleLabel(), dbtoconf::out, and printTimestamps_.

Referenced by Tracer().

993  {
994  LogAbsolute out("Tracer");
995  out << TimeStamper(printTimestamps_);
996  unsigned int nIndents = mcc.depth() + 3;
997  for(unsigned int i = 0; i < nIndents; ++i) {
998  out << indention_;
999  }
1000  out << " starting: global end lumi for module: label = '" << mcc.moduleDescription()->moduleLabel() << "' id = " << mcc.moduleDescription()->id();
1001  if(dumpContextForLabels_.find(mcc.moduleDescription()->moduleLabel()) != dumpContextForLabels_.end()) {
1002  out << "\n" << gc;
1003  out << mcc;
1004  }
1005 }
int i
Definition: DBlmapReader.cc:9
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
std::set< std::string > dumpContextForLabels_
Definition: Tracer.h:149
void Tracer::preModuleGlobalEndRun ( GlobalContext const &  gc,
ModuleCallingContext const &  mcc 
)

Definition at line 933 of file Tracer.cc.

References edm::ModuleCallingContext::depth(), dumpContextForLabels_, i, edm::ModuleDescription::id(), indention_, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleLabel(), dbtoconf::out, and printTimestamps_.

Referenced by Tracer().

933  {
934  LogAbsolute out("Tracer");
935  out << TimeStamper(printTimestamps_);
936  unsigned int nIndents = mcc.depth() + 3;
937  for(unsigned int i = 0; i < nIndents; ++i) {
938  out << indention_;
939  }
940  out << " starting: global end run for module: label = '" << mcc.moduleDescription()->moduleLabel() << "' id = " << mcc.moduleDescription()->id();
941  if(dumpContextForLabels_.find(mcc.moduleDescription()->moduleLabel()) != dumpContextForLabels_.end()) {
942  out << "\n" << gc;
943  out << mcc;
944  }
945 }
int i
Definition: DBlmapReader.cc:9
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
std::set< std::string > dumpContextForLabels_
Definition: Tracer.h:149
void Tracer::preModuleStreamBeginLumi ( StreamContext const &  sc,
ModuleCallingContext const &  mcc 
)

Definition at line 843 of file Tracer.cc.

References edm::ModuleCallingContext::depth(), dumpContextForLabels_, i, edm::ModuleDescription::id(), indention_, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleLabel(), dbtoconf::out, printTimestamps_, and edm::StreamContext::streamID().

Referenced by Tracer().

843  {
844  LogAbsolute out("Tracer");
845  out << TimeStamper(printTimestamps_);
846  unsigned int nIndents = mcc.depth() + 3;
847  for(unsigned int i = 0; i < nIndents; ++i) {
848  out << indention_;
849  }
850  out << " starting: begin lumi for module: stream = " << sc.streamID() << " label = '" << mcc.moduleDescription()->moduleLabel() << "' id = " << mcc.moduleDescription()->id();
851  if(dumpContextForLabels_.find(mcc.moduleDescription()->moduleLabel()) != dumpContextForLabels_.end()) {
852  out << "\n" << sc;
853  out << mcc;
854  }
855 }
int i
Definition: DBlmapReader.cc:9
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
std::set< std::string > dumpContextForLabels_
Definition: Tracer.h:149
void Tracer::preModuleStreamBeginRun ( StreamContext const &  sc,
ModuleCallingContext const &  mcc 
)

Definition at line 783 of file Tracer.cc.

References edm::ModuleCallingContext::depth(), dumpContextForLabels_, i, edm::ModuleDescription::id(), indention_, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleLabel(), dbtoconf::out, printTimestamps_, and edm::StreamContext::streamID().

Referenced by Tracer().

783  {
784  LogAbsolute out("Tracer");
785  out << TimeStamper(printTimestamps_);
786  unsigned int nIndents = mcc.depth() + 3;
787  for(unsigned int i = 0; i < nIndents; ++i) {
788  out << indention_;
789  }
790  out << " starting: begin run for module: stream = " << sc.streamID() << " label = '" << mcc.moduleDescription()->moduleLabel() << "' id = " << mcc.moduleDescription()->id();
791  if(dumpContextForLabels_.find(mcc.moduleDescription()->moduleLabel()) != dumpContextForLabels_.end()) {
792  out << "\n" << sc;
793  out << mcc;
794  }
795 }
int i
Definition: DBlmapReader.cc:9
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
std::set< std::string > dumpContextForLabels_
Definition: Tracer.h:149
void Tracer::preModuleStreamEndLumi ( StreamContext const &  sc,
ModuleCallingContext const &  mcc 
)

Definition at line 873 of file Tracer.cc.

References edm::ModuleCallingContext::depth(), dumpContextForLabels_, i, edm::ModuleDescription::id(), indention_, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleLabel(), dbtoconf::out, printTimestamps_, and edm::StreamContext::streamID().

Referenced by Tracer().

873  {
874  LogAbsolute out("Tracer");
875  out << TimeStamper(printTimestamps_);
876  unsigned int nIndents = mcc.depth() + 3;
877  for(unsigned int i = 0; i < nIndents; ++i) {
878  out << indention_;
879  }
880  out << " starting: end lumi for module: stream = " << sc.streamID() << " label = '"<< mcc.moduleDescription()->moduleLabel() << "' id = " << mcc.moduleDescription()->id();
881  if(dumpContextForLabels_.find(mcc.moduleDescription()->moduleLabel()) != dumpContextForLabels_.end()) {
882  out << "\n" << sc;
883  out << mcc;
884  }
885 }
int i
Definition: DBlmapReader.cc:9
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
std::set< std::string > dumpContextForLabels_
Definition: Tracer.h:149
void Tracer::preModuleStreamEndRun ( StreamContext const &  sc,
ModuleCallingContext const &  mcc 
)

Definition at line 813 of file Tracer.cc.

References edm::ModuleCallingContext::depth(), dumpContextForLabels_, i, edm::ModuleDescription::id(), indention_, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleLabel(), dbtoconf::out, printTimestamps_, and edm::StreamContext::streamID().

Referenced by Tracer().

813  {
814  LogAbsolute out("Tracer");
815  out << TimeStamper(printTimestamps_);
816  unsigned int nIndents = mcc.depth() + 3;
817  for(unsigned int i = 0; i < nIndents; ++i) {
818  out << indention_;
819  }
820  out << " starting: end run for module: stream = " << sc.streamID() << " label = '" << mcc.moduleDescription()->moduleLabel() << "' id = " << mcc.moduleDescription()->id();
821  if(dumpContextForLabels_.find(mcc.moduleDescription()->moduleLabel()) != dumpContextForLabels_.end()) {
822  out << "\n" << sc;
823  out << mcc;
824  }
825 }
int i
Definition: DBlmapReader.cc:9
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
std::set< std::string > dumpContextForLabels_
Definition: Tracer.h:149
void Tracer::preOpenFile ( std::string const &  lfn,
bool  b 
)

Definition at line 358 of file Tracer.cc.

References b, dumpNonModuleContext_, indention_, dbtoconf::out, and printTimestamps_.

Referenced by Tracer().

358  {
359  LogAbsolute out("Tracer");
360  out << TimeStamper(printTimestamps_);
361  out << indention_ << indention_ << " starting: open input file: lfn = " << lfn;
362  if(dumpNonModuleContext_) out << " usedFallBack = " << b;
363 }
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
double b
Definition: hdecay.h:120
bool dumpNonModuleContext_
Definition: Tracer.h:150
void Tracer::prePathEvent ( StreamContext const &  sc,
PathContext const &  pc 
)

Definition at line 635 of file Tracer.cc.

References dumpNonModuleContext_, indention_, dbtoconf::out, edm::PathContext::pathName(), printTimestamps_, and edm::StreamContext::streamID().

Referenced by Tracer().

635  {
636  LogAbsolute out("Tracer");
637  out << TimeStamper(printTimestamps_);
638  out << indention_ << indention_ << indention_ << " starting: processing path '" << pc.pathName() << "' : stream = " << sc.streamID();
640  out << "\n" << sc;
641  out << pc;
642  }
643 }
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
bool dumpNonModuleContext_
Definition: Tracer.h:150
void Tracer::preSourceConstruction ( ModuleDescription const &  md)

Definition at line 1023 of file Tracer.cc.

References dumpNonModuleContext_, indention_, edm::ModuleDescription::moduleName(), dbtoconf::out, and printTimestamps_.

Referenced by Tracer().

1023  {
1024  LogAbsolute out("Tracer");
1025  out << TimeStamper(printTimestamps_);
1026  out << indention_;
1027  out << " starting: constructing source: " << desc.moduleName();
1028  if(dumpNonModuleContext_) {
1029  out << "\n" << desc;
1030  }
1031 }
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
bool dumpNonModuleContext_
Definition: Tracer.h:150
void Tracer::preSourceEvent ( StreamID  sid)

Definition at line 328 of file Tracer.cc.

References indention_, and printTimestamps_.

Referenced by Tracer().

328  {
329  LogAbsolute("Tracer") << TimeStamper(printTimestamps_) << indention_ << indention_ << " starting: source event";
330 }
std::string indention_
Definition: Tracer.h:148
void Tracer::preSourceLumi ( )

Definition at line 338 of file Tracer.cc.

References indention_, and printTimestamps_.

Referenced by Tracer().

338  {
339  LogAbsolute("Tracer") << TimeStamper(printTimestamps_) << indention_ << indention_ << " starting: source lumi";
340 }
std::string indention_
Definition: Tracer.h:148
void Tracer::preSourceRun ( )

Definition at line 348 of file Tracer.cc.

References indention_, and printTimestamps_.

Referenced by Tracer().

348  {
349  LogAbsolute("Tracer") << TimeStamper(printTimestamps_) << indention_ << indention_ << " starting: source run";
350 }
std::string indention_
Definition: Tracer.h:148
void Tracer::preStreamBeginLumi ( StreamContext const &  sc)

Definition at line 569 of file Tracer.cc.

References dumpNonModuleContext_, edm::StreamContext::eventID(), indention_, edm::EventID::luminosityBlock(), dbtoconf::out, printTimestamps_, edm::EventID::run(), edm::StreamContext::streamID(), edm::StreamContext::timestamp(), and edm::Timestamp::value().

Referenced by Tracer().

569  {
570  LogAbsolute out("Tracer");
571  out << TimeStamper(printTimestamps_);
572  out << indention_ << indention_ << " starting: begin lumi: stream = " << sc.streamID() << " run = " << sc.eventID().run()
573  << " lumi = " << sc.eventID().luminosityBlock() << " time = " << sc.timestamp().value();
575  out << "\n" << sc;
576  }
577 }
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
bool dumpNonModuleContext_
Definition: Tracer.h:150
void Tracer::preStreamBeginRun ( StreamContext const &  sc)

Definition at line 481 of file Tracer.cc.

References dumpNonModuleContext_, edm::StreamContext::eventID(), indention_, dbtoconf::out, printTimestamps_, edm::EventID::run(), edm::StreamContext::streamID(), edm::StreamContext::timestamp(), and edm::Timestamp::value().

Referenced by Tracer().

481  {
482  LogAbsolute out("Tracer");
483  out << TimeStamper(printTimestamps_);
484  out << indention_ << indention_ << " starting: begin run: stream = " << sc.streamID() << " run = " << sc.eventID().run()
485  << " time = " << sc.timestamp().value();
487  out << "\n" << sc;
488  }
489 }
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
bool dumpNonModuleContext_
Definition: Tracer.h:150
void Tracer::preStreamEndLumi ( StreamContext const &  sc)

Definition at line 591 of file Tracer.cc.

References dumpNonModuleContext_, edm::StreamContext::eventID(), indention_, edm::EventID::luminosityBlock(), dbtoconf::out, printTimestamps_, edm::EventID::run(), edm::StreamContext::streamID(), edm::StreamContext::timestamp(), and edm::Timestamp::value().

Referenced by Tracer().

591  {
592  LogAbsolute out("Tracer");
593  out << TimeStamper(printTimestamps_);
594  out << indention_ << indention_ << " starting: end lumi: stream = " << sc.streamID() << " run = " << sc.eventID().run()
595  << " lumi = " << sc.eventID().luminosityBlock() << " time = " << sc.timestamp().value();
597  out << "\n" << sc;
598  }
599 }
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
bool dumpNonModuleContext_
Definition: Tracer.h:150
void Tracer::preStreamEndRun ( StreamContext const &  sc)

Definition at line 503 of file Tracer.cc.

References dumpNonModuleContext_, edm::StreamContext::eventID(), indention_, dbtoconf::out, printTimestamps_, edm::EventID::run(), edm::StreamContext::streamID(), edm::StreamContext::timestamp(), and edm::Timestamp::value().

Referenced by Tracer().

503  {
504  LogAbsolute out("Tracer");
505  out << TimeStamper(printTimestamps_);
506  out << indention_ << indention_ << " starting: end run: stream = " << sc.streamID() << " run = " << sc.eventID().run()
507  << " time = " << sc.timestamp().value();
509  out << "\n" << sc;
510  }
511 }
tuple out
Definition: dbtoconf.py:99
std::string indention_
Definition: Tracer.h:148
bool dumpNonModuleContext_
Definition: Tracer.h:150

Member Data Documentation

std::set<std::string> edm::service::Tracer::dumpContextForLabels_
private
bool edm::service::Tracer::dumpNonModuleContext_
private
bool edm::service::Tracer::dumpPathsAndConsumes_
private

Definition at line 151 of file Tracer.h.

Referenced by preBeginJob().

std::string edm::service::Tracer::indention_
private
bool edm::service::Tracer::printTimestamps_
private