LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
art::Tracer Class Reference

Classes

struct  Config
 

Public Types

using Parameters = ServiceTable< Config >
 

Public Member Functions

 Tracer (Parameters const &, ActivityRegistry &)
 

Private Member Functions

void log_with_indent (unsigned n, std::string const &message) const
 
void postBeginJob ()
 
void postEndJob ()
 
void preBeginRun (Run const &run)
 
void postBeginRun (Run const &run)
 
void preBeginSubRun (SubRun const &subRun)
 
void postBeginSubRun (SubRun const &subRun)
 
void preEvent (Event const &ev, ScheduleContext)
 
void postEvent (Event const &ev, ScheduleContext)
 
void preEndSubRun (SubRunID const &id, Timestamp const &ts)
 
void postEndSubRun (SubRun const &run)
 
void preEndRun (RunID const &id, Timestamp const &ts)
 
void postEndRun (Run const &run)
 
void preModuleConstruction (ModuleDescription const &md)
 
void postModuleConstruction (ModuleDescription const &md)
 
void preModuleBeginJob (ModuleDescription const &md)
 
void postModuleBeginJob (ModuleDescription const &md)
 
void preModuleBeginRun (ModuleContext const &mc)
 
void postModuleBeginRun (ModuleContext const &mc)
 
void preModuleBeginSubRun (ModuleContext const &mc)
 
void postModuleBeginSubRun (ModuleContext const &mc)
 
void preModuleEvent (ModuleContext const &mc)
 
void postModuleEvent (ModuleContext const &mc)
 
void preModuleEndSubRun (ModuleContext const &mc)
 
void postModuleEndSubRun (ModuleContext const &mc)
 
void preModuleEndRun (ModuleContext const &mc)
 
void postModuleEndRun (ModuleContext const &mc)
 
void preModuleEndJob (ModuleDescription const &md)
 
void postModuleEndJob (ModuleDescription const &md)
 
void preSourceEvent (ScheduleContext)
 
void postSourceEvent (Event const &, ScheduleContext)
 
void preSourceSubRun ()
 
void postSourceSubRun (SubRun const &)
 
void preSourceRun ()
 
void postSourceRun (Run const &)
 
void preOpenFile ()
 
void postOpenFile (string const &fn)
 
void preCloseFile ()
 
void postCloseFile ()
 
void postOpenOutputFile (string const &label)
 
void preCloseOutputFile (string const &label)
 
void postCloseOutputFile (OutputFileInfo const &info)
 
void prePathBeginRun (string const &s)
 
void postPathBeginRun (string const &s, HLTPathStatus const &hlt)
 
void prePathBeginSubRun (string const &s)
 
void postPathBeginSubRun (string const &s, HLTPathStatus const &hlt)
 
void prePathEvent (PathContext const &pc)
 
void postPathEvent (PathContext const &pc, HLTPathStatus const &hlt)
 
void prePathEndSubRun (string const &s)
 
void postPathEndSubRun (string const &s, HLTPathStatus const &hlt)
 
void prePathEndRun (string const &s)
 
void postPathEndRun (string const &s, HLTPathStatus const &hlt)
 

Private Attributes

string const indentation_
 
std::atomic< unsigned int > depth_ {}
 

Detailed Description

Definition at line 34 of file Tracer_service.cc.

Member Typedef Documentation

Definition at line 39 of file Tracer_service.cc.

Constructor & Destructor Documentation

art::Tracer::Tracer ( Parameters const &  config,
ActivityRegistry iRegistry 
)

Definition at line 127 of file Tracer_service.cc.

References art::Globals::instance(), postBeginJob(), postBeginRun(), postBeginSubRun(), postCloseFile(), postCloseOutputFile(), postEndJob(), postEndRun(), postEndSubRun(), postEvent(), postModuleBeginJob(), postModuleBeginRun(), postModuleBeginSubRun(), postModuleConstruction(), postModuleEndJob(), postModuleEndRun(), postModuleEndSubRun(), postModuleEvent(), postOpenFile(), postOpenOutputFile(), postPathBeginRun(), postPathBeginSubRun(), postPathEndRun(), postPathEndSubRun(), postPathEvent(), postSourceEvent(), postSourceRun(), postSourceSubRun(), preBeginRun(), preBeginSubRun(), preCloseFile(), preCloseOutputFile(), preEndRun(), preEndSubRun(), preEvent(), preModuleBeginJob(), preModuleBeginRun(), preModuleBeginSubRun(), preModuleConstruction(), preModuleEndJob(), preModuleEndRun(), preModuleEndSubRun(), preModuleEvent(), preOpenFile(), prePathBeginRun(), prePathBeginSubRun(), prePathEndRun(), prePathEndSubRun(), prePathEvent(), preSourceEvent(), preSourceRun(), and preSourceSubRun().

128  : indentation_{config().indentation()}
129  {
130  if (auto const nthreads = Globals::instance()->nthreads(); nthreads != 1) {
131  mf::LogWarning("Tracer") << "Because " << nthreads
132  << " threads have been configured, the tracing "
133  "messages will be interleaved.\n"
134  << "Please configure your job to use one thread "
135  "for a predictable output.";
136  }
137 
138  iRegistry.sPostBeginJob.watch(this, &Tracer::postBeginJob);
139  iRegistry.sPostEndJob.watch(this, &Tracer::postEndJob);
140  iRegistry.sPreModule.watch(this, &Tracer::preModuleEvent);
141  iRegistry.sPostModule.watch(this, &Tracer::postModuleEvent);
142  iRegistry.sPreModuleConstruction.watch(this,
144  iRegistry.sPostModuleConstruction.watch(this,
146  iRegistry.sPreModuleBeginJob.watch(this, &Tracer::preModuleBeginJob);
147  iRegistry.sPostModuleBeginJob.watch(this, &Tracer::postModuleBeginJob);
148  iRegistry.sPreModuleEndJob.watch(this, &Tracer::preModuleEndJob);
149  iRegistry.sPostModuleEndJob.watch(this, &Tracer::postModuleEndJob);
150  iRegistry.sPreModuleBeginRun.watch(this, &Tracer::preModuleBeginRun);
151  iRegistry.sPostModuleBeginRun.watch(this, &Tracer::postModuleBeginRun);
152  iRegistry.sPreModuleEndRun.watch(this, &Tracer::preModuleEndRun);
153  iRegistry.sPostModuleEndRun.watch(this, &Tracer::postModuleEndRun);
154  iRegistry.sPreModuleBeginSubRun.watch(this, &Tracer::preModuleBeginSubRun);
155  iRegistry.sPostModuleBeginSubRun.watch(this,
157  iRegistry.sPreModuleEndSubRun.watch(this, &Tracer::preModuleEndSubRun);
158  iRegistry.sPostModuleEndSubRun.watch(this, &Tracer::postModuleEndSubRun);
159  iRegistry.sPreProcessPath.watch(this, &Tracer::prePathEvent);
160  iRegistry.sPostProcessPath.watch(this, &Tracer::postPathEvent);
161  iRegistry.sPrePathBeginRun.watch(this, &Tracer::prePathBeginRun);
162  iRegistry.sPostPathBeginRun.watch(this, &Tracer::postPathBeginRun);
163  iRegistry.sPrePathEndRun.watch(this, &Tracer::prePathEndRun);
164  iRegistry.sPostPathEndRun.watch(this, &Tracer::postPathEndRun);
165  iRegistry.sPrePathBeginSubRun.watch(this, &Tracer::prePathBeginSubRun);
166  iRegistry.sPostPathBeginSubRun.watch(this, &Tracer::postPathBeginSubRun);
167  iRegistry.sPrePathEndSubRun.watch(this, &Tracer::prePathEndSubRun);
168  iRegistry.sPostPathEndSubRun.watch(this, &Tracer::postPathEndSubRun);
169  iRegistry.sPreProcessEvent.watch(this, &Tracer::preEvent);
170  iRegistry.sPostProcessEvent.watch(this, &Tracer::postEvent);
171  iRegistry.sPreBeginRun.watch(this, &Tracer::preBeginRun);
172  iRegistry.sPostBeginRun.watch(this, &Tracer::postBeginRun);
173  iRegistry.sPreEndRun.watch(this, &Tracer::preEndRun);
174  iRegistry.sPostEndRun.watch(this, &Tracer::postEndRun);
175  iRegistry.sPreBeginSubRun.watch(this, &Tracer::preBeginSubRun);
176  iRegistry.sPostBeginSubRun.watch(this, &Tracer::postBeginSubRun);
177  iRegistry.sPreEndSubRun.watch(this, &Tracer::preEndSubRun);
178  iRegistry.sPostEndSubRun.watch(this, &Tracer::postEndSubRun);
179  iRegistry.sPreSourceEvent.watch(this, &Tracer::preSourceEvent);
180  iRegistry.sPostSourceEvent.watch(this, &Tracer::postSourceEvent);
181  iRegistry.sPreOpenFile.watch(this, &Tracer::preOpenFile);
182  iRegistry.sPostOpenFile.watch(this, &Tracer::postOpenFile);
183  iRegistry.sPreCloseFile.watch(this, &Tracer::preCloseFile);
184  iRegistry.sPostCloseFile.watch(this, &Tracer::postCloseFile);
185  iRegistry.sPostOpenOutputFile.watch(this, &Tracer::postOpenOutputFile);
186  iRegistry.sPreCloseOutputFile.watch(this, &Tracer::preCloseOutputFile);
187  iRegistry.sPostCloseOutputFile.watch(this, &Tracer::postCloseOutputFile);
188  iRegistry.sPreSourceRun.watch(this, &Tracer::preSourceRun);
189  iRegistry.sPostSourceRun.watch(this, &Tracer::postSourceRun);
190  iRegistry.sPreSourceSubRun.watch(this, &Tracer::preSourceSubRun);
191  iRegistry.sPostSourceSubRun.watch(this, &Tracer::postSourceSubRun);
192  }
void preModuleEndSubRun(ModuleContext const &mc)
void preModuleEndRun(ModuleContext const &mc)
void postSourceSubRun(SubRun const &)
void postSourceRun(Run const &)
void preCloseOutputFile(string const &label)
void preModuleConstruction(ModuleDescription const &md)
void postModuleConstruction(ModuleDescription const &md)
void preModuleBeginSubRun(ModuleContext const &mc)
void postPathBeginSubRun(string const &s, HLTPathStatus const &hlt)
void preEvent(Event const &ev, ScheduleContext)
void preEndRun(RunID const &id, Timestamp const &ts)
void postPathEndSubRun(string const &s, HLTPathStatus const &hlt)
void postModuleBeginJob(ModuleDescription const &md)
void postModuleBeginRun(ModuleContext const &mc)
void postModuleBeginSubRun(ModuleContext const &mc)
void preBeginRun(Run const &run)
void preSourceEvent(ScheduleContext)
void preBeginSubRun(SubRun const &subRun)
void postEndSubRun(SubRun const &run)
void preModuleBeginRun(ModuleContext const &mc)
void preModuleEvent(ModuleContext const &mc)
void postModuleEndRun(ModuleContext const &mc)
void postBeginRun(Run const &run)
void preModuleEndJob(ModuleDescription const &md)
void postModuleEvent(ModuleContext const &mc)
void preCloseFile()
void postOpenFile(string const &fn)
void postEndRun(Run const &run)
void postEvent(Event const &ev, ScheduleContext)
void prePathEndSubRun(string const &s)
void postModuleEndSubRun(ModuleContext const &mc)
void prePathBeginRun(string const &s)
void prePathEndRun(string const &s)
void postPathEndRun(string const &s, HLTPathStatus const &hlt)
void postOpenOutputFile(string const &label)
void postModuleEndJob(ModuleDescription const &md)
void preModuleBeginJob(ModuleDescription const &md)
void postBeginJob()
void preSourceRun()
MaybeLogger_< ELseverityLevel::ELsev_warning, false > LogWarning
void preSourceSubRun()
void postCloseFile()
static Globals * instance()
Definition: Globals.cc:17
void preEndSubRun(SubRunID const &id, Timestamp const &ts)
void prePathEvent(PathContext const &pc)
void prePathBeginSubRun(string const &s)
void preOpenFile()
void postCloseOutputFile(OutputFileInfo const &info)
void postPathEvent(PathContext const &pc, HLTPathStatus const &hlt)
string const indentation_
void postBeginSubRun(SubRun const &subRun)
void postSourceEvent(Event const &, ScheduleContext)
void postPathBeginRun(string const &s, HLTPathStatus const &hlt)

Member Function Documentation

void art::Tracer::log_with_indent ( unsigned  n,
std::string const &  message 
) const
private
void art::Tracer::postBeginJob ( )
private

Definition at line 208 of file Tracer_service.cc.

References log_with_indent().

Referenced by Tracer().

209  {
210  log_with_indent(1, "Job started");
211  }
void log_with_indent(unsigned n, std::string const &message) const
void art::Tracer::postBeginRun ( Run const &  run)
private

Definition at line 352 of file Tracer_service.cc.

References log_with_indent().

Referenced by Tracer().

353  {
354  log_with_indent(2, "finished begin run");
355  }
void log_with_indent(unsigned n, std::string const &message) const
void art::Tracer::postBeginSubRun ( SubRun const &  subRun)
private

Definition at line 435 of file Tracer_service.cc.

References log_with_indent().

Referenced by Tracer().

436  {
437  log_with_indent(2, "finished begin subRun");
438  }
void log_with_indent(unsigned n, std::string const &message) const
void art::Tracer::postCloseFile ( )
private

Definition at line 275 of file Tracer_service.cc.

References log_with_indent().

Referenced by Tracer().

276  {
277  log_with_indent(2, "finished close input file");
278  }
void log_with_indent(unsigned n, std::string const &message) const
void art::Tracer::postCloseOutputFile ( OutputFileInfo const &  info)
private

Definition at line 293 of file Tracer_service.cc.

References art::OutputFileInfo::fileName(), log_with_indent(), and art::OutputFileInfo::moduleLabel().

Referenced by Tracer().

294  {
295  string const fn{info.fileName().empty() ? "<none>"s : info.fileName()};
297  2, "finished close output file " + fn + " from " + info.moduleLabel());
298  }
void log_with_indent(unsigned n, std::string const &message) const
void art::Tracer::postEndJob ( )
private

Definition at line 214 of file Tracer_service.cc.

References log_with_indent().

Referenced by Tracer().

215  {
216  log_with_indent(1, "Job ended");
217  }
void log_with_indent(unsigned n, std::string const &message) const
void art::Tracer::postEndRun ( Run const &  run)
private

Definition at line 393 of file Tracer_service.cc.

References log_with_indent().

Referenced by Tracer().

394  {
395  log_with_indent(2, "finished end run");
396  }
void log_with_indent(unsigned n, std::string const &message) const
void art::Tracer::postEndSubRun ( SubRun const &  run)
private

Definition at line 476 of file Tracer_service.cc.

References log_with_indent().

Referenced by Tracer().

477  {
478  log_with_indent(2, "finished end subRun");
479  }
void log_with_indent(unsigned n, std::string const &message) const
void art::Tracer::postEvent ( Event const &  ev,
ScheduleContext   
)
private

Definition at line 310 of file Tracer_service.cc.

References log_with_indent().

Referenced by Tracer().

311  {
312  log_with_indent(2, "finished event");
313  }
void log_with_indent(unsigned n, std::string const &message) const
void art::Tracer::postModuleBeginJob ( ModuleDescription const &  md)
private

Definition at line 526 of file Tracer_service.cc.

References log_with_indent(), and art::ModuleDescription::moduleLabel().

Referenced by Tracer().

527  {
528  log_with_indent(1, "beginJob finished: " + md.moduleLabel());
529  }
void log_with_indent(unsigned n, std::string const &message) const
void art::Tracer::postModuleBeginRun ( ModuleContext const &  mc)
private

Definition at line 377 of file Tracer_service.cc.

References depth_, log_with_indent(), and art::ModuleContext::moduleLabel().

Referenced by Tracer().

378  {
379  --depth_;
380  log_with_indent(4 + depth_, "finished for begin run: " + mc.moduleLabel());
381  }
void log_with_indent(unsigned n, std::string const &message) const
std::atomic< unsigned int > depth_
void art::Tracer::postModuleBeginSubRun ( ModuleContext const &  mc)
private

Definition at line 460 of file Tracer_service.cc.

References depth_, log_with_indent(), and art::ModuleContext::moduleLabel().

Referenced by Tracer().

461  {
462  --depth_;
463  log_with_indent(4, "finished for begin subRun: " + mc.moduleLabel());
464  }
void log_with_indent(unsigned n, std::string const &message) const
std::atomic< unsigned int > depth_
void art::Tracer::postModuleConstruction ( ModuleDescription const &  md)
private

Definition at line 514 of file Tracer_service.cc.

References log_with_indent(), and art::ModuleDescription::moduleLabel().

Referenced by Tracer().

515  {
516  log_with_indent(1, "construction finished: " + md.moduleLabel());
517  }
void log_with_indent(unsigned n, std::string const &message) const
void art::Tracer::postModuleEndJob ( ModuleDescription const &  md)
private

Definition at line 538 of file Tracer_service.cc.

References DECLARE_ART_SERVICE, DEFINE_ART_SERVICE, log_with_indent(), art::ModuleDescription::moduleLabel(), and art::SHARED.

Referenced by Tracer().

539  {
540  log_with_indent(1, "endJob finished: " + md.moduleLabel());
541  }
void log_with_indent(unsigned n, std::string const &message) const
void art::Tracer::postModuleEndRun ( ModuleContext const &  mc)
private

Definition at line 418 of file Tracer_service.cc.

References depth_, log_with_indent(), and art::ModuleContext::moduleLabel().

Referenced by Tracer().

419  {
420  --depth_;
421  log_with_indent(4 + depth_, "finished for end run: " + mc.moduleLabel());
422  }
void log_with_indent(unsigned n, std::string const &message) const
std::atomic< unsigned int > depth_
void art::Tracer::postModuleEndSubRun ( ModuleContext const &  mc)
private

Definition at line 501 of file Tracer_service.cc.

References depth_, log_with_indent(), and art::ModuleContext::moduleLabel().

Referenced by Tracer().

502  {
503  --depth_;
504  log_with_indent(4 + depth_, "finished for end subRun: " + mc.moduleLabel());
505  }
void log_with_indent(unsigned n, std::string const &message) const
std::atomic< unsigned int > depth_
void art::Tracer::postModuleEvent ( ModuleContext const &  mc)
private

Definition at line 335 of file Tracer_service.cc.

References depth_, log_with_indent(), and art::ModuleContext::moduleLabel().

Referenced by Tracer().

336  {
337  --depth_;
338  log_with_indent(4 + depth_, "finished for event: " + mc.moduleLabel());
339  }
void log_with_indent(unsigned n, std::string const &message) const
std::atomic< unsigned int > depth_
void art::Tracer::postOpenFile ( string const &  fn)
private

Definition at line 262 of file Tracer_service.cc.

References log_with_indent().

Referenced by Tracer().

263  {
264  string const displayed_fn{fn.empty() ? "<none>"s : fn};
265  log_with_indent(2, "finished open input file: " + displayed_fn);
266  }
void log_with_indent(unsigned n, std::string const &message) const
void art::Tracer::postOpenOutputFile ( string const &  label)
private

Definition at line 281 of file Tracer_service.cc.

References log_with_indent().

Referenced by Tracer().

282  {
283  log_with_indent(2, "opened output file from " + label);
284  }
void log_with_indent(unsigned n, std::string const &message) const
void art::Tracer::postPathBeginRun ( string const &  s,
HLTPathStatus const &  hlt 
)
private

Definition at line 364 of file Tracer_service.cc.

References log_with_indent().

Referenced by Tracer().

365  {
366  log_with_indent(3, "finished path for begin run");
367  }
void log_with_indent(unsigned n, std::string const &message) const
void art::Tracer::postPathBeginSubRun ( string const &  s,
HLTPathStatus const &  hlt 
)
private

Definition at line 447 of file Tracer_service.cc.

References log_with_indent().

Referenced by Tracer().

448  {
449  log_with_indent(3, "finished path for begin subRun");
450  }
void log_with_indent(unsigned n, std::string const &message) const
void art::Tracer::postPathEndRun ( string const &  s,
HLTPathStatus const &  hlt 
)
private

Definition at line 405 of file Tracer_service.cc.

References log_with_indent().

Referenced by Tracer().

406  {
407  log_with_indent(3, "finished path for end run");
408  }
void log_with_indent(unsigned n, std::string const &message) const
void art::Tracer::postPathEndSubRun ( string const &  s,
HLTPathStatus const &  hlt 
)
private

Definition at line 488 of file Tracer_service.cc.

References log_with_indent().

Referenced by Tracer().

489  {
490  log_with_indent(3, "finished path for end subRun");
491  }
void log_with_indent(unsigned n, std::string const &message) const
void art::Tracer::postPathEvent ( PathContext const &  pc,
HLTPathStatus const &  hlt 
)
private

Definition at line 322 of file Tracer_service.cc.

References log_with_indent(), and art::PathContext::pathName().

Referenced by Tracer().

323  {
324  log_with_indent(3, "finished path for event: " + pc.pathName());
325  }
void log_with_indent(unsigned n, std::string const &message) const
void art::Tracer::postSourceEvent ( Event const &  ,
ScheduleContext   
)
private

Definition at line 226 of file Tracer_service.cc.

References log_with_indent().

Referenced by Tracer().

227  {
228  log_with_indent(2, "finished source event");
229  }
void log_with_indent(unsigned n, std::string const &message) const
void art::Tracer::postSourceRun ( Run const &  )
private

Definition at line 250 of file Tracer_service.cc.

References log_with_indent().

Referenced by Tracer().

251  {
252  log_with_indent(2, "finished source run");
253  }
void log_with_indent(unsigned n, std::string const &message) const
void art::Tracer::postSourceSubRun ( SubRun const &  )
private

Definition at line 238 of file Tracer_service.cc.

References log_with_indent().

Referenced by Tracer().

239  {
240  log_with_indent(2, "finished source subRun");
241  }
void log_with_indent(unsigned n, std::string const &message) const
void art::Tracer::preBeginRun ( Run const &  run)
private

Definition at line 342 of file Tracer_service.cc.

References art::Run::beginTime(), depth_, art::Run::id(), log_with_indent(), and art::Timestamp::value().

Referenced by Tracer().

343  {
344  depth_ = 0;
345  std::ostringstream msg;
346  msg << "processing begin run: " << run.id()
347  << " time: " << run.beginTime().value();
348  log_with_indent(2, msg.str());
349  }
void log_with_indent(unsigned n, std::string const &message) const
std::atomic< unsigned int > depth_
void art::Tracer::preBeginSubRun ( SubRun const &  subRun)
private

Definition at line 425 of file Tracer_service.cc.

References art::SubRun::beginTime(), depth_, art::SubRun::id(), log_with_indent(), and art::Timestamp::value().

Referenced by Tracer().

426  {
427  depth_ = 0;
428  std::ostringstream msg;
429  msg << "processing begin subRun: " << subRun.id()
430  << " time: " << subRun.beginTime().value();
431  log_with_indent(2, msg.str());
432  }
void log_with_indent(unsigned n, std::string const &message) const
std::atomic< unsigned int > depth_
void art::Tracer::preCloseFile ( )
private

Definition at line 269 of file Tracer_service.cc.

References log_with_indent().

Referenced by Tracer().

270  {
271  log_with_indent(2, "close input file");
272  }
void log_with_indent(unsigned n, std::string const &message) const
void art::Tracer::preCloseOutputFile ( string const &  label)
private

Definition at line 287 of file Tracer_service.cc.

References log_with_indent().

Referenced by Tracer().

288  {
289  log_with_indent(2, "close output file from " + label);
290  }
void log_with_indent(unsigned n, std::string const &message) const
void art::Tracer::preEndRun ( RunID const &  id,
Timestamp const &  ts 
)
private

Definition at line 384 of file Tracer_service.cc.

References depth_, log_with_indent(), and art::Timestamp::value().

Referenced by Tracer().

385  {
386  depth_ = 0;
387  std::ostringstream msg;
388  msg << "processing end run: " << iID << " time: " << iTime.value();
389  log_with_indent(2, msg.str());
390  }
void log_with_indent(unsigned n, std::string const &message) const
std::atomic< unsigned int > depth_
void art::Tracer::preEndSubRun ( SubRunID const &  id,
Timestamp const &  ts 
)
private

Definition at line 467 of file Tracer_service.cc.

References depth_, log_with_indent(), and art::Timestamp::value().

Referenced by Tracer().

468  {
469  depth_ = 0;
470  std::ostringstream msg;
471  msg << "processing end subRun: " << iID << " time: " << iTime.value();
472  log_with_indent(2, msg.str());
473  }
void log_with_indent(unsigned n, std::string const &message) const
std::atomic< unsigned int > depth_
void art::Tracer::preEvent ( Event const &  ev,
ScheduleContext   
)
private

Definition at line 301 of file Tracer_service.cc.

References depth_, art::Event::id(), log_with_indent(), art::Event::time(), and art::Timestamp::value().

Referenced by Tracer().

302  {
303  depth_ = 0;
304  std::ostringstream msg;
305  msg << "processing event: " << ev.id() << " time: " << ev.time().value();
306  log_with_indent(2, msg.str());
307  }
void log_with_indent(unsigned n, std::string const &message) const
std::atomic< unsigned int > depth_
void art::Tracer::preModuleBeginJob ( ModuleDescription const &  md)
private

Definition at line 520 of file Tracer_service.cc.

References log_with_indent(), and art::ModuleDescription::moduleLabel().

Referenced by Tracer().

521  {
522  log_with_indent(1, "beginJob module: " + md.moduleLabel());
523  }
void log_with_indent(unsigned n, std::string const &message) const
void art::Tracer::preModuleBeginRun ( ModuleContext const &  mc)
private

Definition at line 370 of file Tracer_service.cc.

References depth_, log_with_indent(), and art::ModuleContext::moduleLabel().

Referenced by Tracer().

371  {
372  ++depth_;
373  log_with_indent(3 + depth_, "module for begin run: " + mc.moduleLabel());
374  }
void log_with_indent(unsigned n, std::string const &message) const
std::atomic< unsigned int > depth_
void art::Tracer::preModuleBeginSubRun ( ModuleContext const &  mc)
private

Definition at line 453 of file Tracer_service.cc.

References depth_, log_with_indent(), and art::ModuleContext::moduleLabel().

Referenced by Tracer().

454  {
455  ++depth_;
456  log_with_indent(3 + depth_, "module for begin subRun: " + mc.moduleLabel());
457  }
void log_with_indent(unsigned n, std::string const &message) const
std::atomic< unsigned int > depth_
void art::Tracer::preModuleConstruction ( ModuleDescription const &  md)
private

Definition at line 508 of file Tracer_service.cc.

References log_with_indent(), and art::ModuleDescription::moduleLabel().

Referenced by Tracer().

509  {
510  log_with_indent(1, "constructing module: " + md.moduleLabel());
511  }
void log_with_indent(unsigned n, std::string const &message) const
void art::Tracer::preModuleEndJob ( ModuleDescription const &  md)
private

Definition at line 532 of file Tracer_service.cc.

References log_with_indent(), and art::ModuleDescription::moduleLabel().

Referenced by Tracer().

533  {
534  log_with_indent(1, "endJob module: " + md.moduleLabel());
535  }
void log_with_indent(unsigned n, std::string const &message) const
void art::Tracer::preModuleEndRun ( ModuleContext const &  mc)
private

Definition at line 411 of file Tracer_service.cc.

References depth_, log_with_indent(), and art::ModuleContext::moduleLabel().

Referenced by Tracer().

412  {
413  ++depth_;
414  log_with_indent(3 + depth_, "module for end run: " + mc.moduleLabel());
415  }
void log_with_indent(unsigned n, std::string const &message) const
std::atomic< unsigned int > depth_
void art::Tracer::preModuleEndSubRun ( ModuleContext const &  mc)
private

Definition at line 494 of file Tracer_service.cc.

References depth_, log_with_indent(), and art::ModuleContext::moduleLabel().

Referenced by Tracer().

495  {
496  ++depth_;
497  log_with_indent(3 + depth_, "module for end subRun: " + mc.moduleLabel());
498  }
void log_with_indent(unsigned n, std::string const &message) const
std::atomic< unsigned int > depth_
void art::Tracer::preModuleEvent ( ModuleContext const &  mc)
private

Definition at line 328 of file Tracer_service.cc.

References depth_, log_with_indent(), and art::ModuleContext::moduleLabel().

Referenced by Tracer().

329  {
330  ++depth_;
331  log_with_indent(3 + depth_, "module for event: " + mc.moduleLabel());
332  }
void log_with_indent(unsigned n, std::string const &message) const
std::atomic< unsigned int > depth_
void art::Tracer::preOpenFile ( )
private

Definition at line 256 of file Tracer_service.cc.

References log_with_indent().

Referenced by Tracer().

257  {
258  log_with_indent(2, "open input file");
259  }
void log_with_indent(unsigned n, std::string const &message) const
void art::Tracer::prePathBeginRun ( string const &  s)
private

Definition at line 358 of file Tracer_service.cc.

References log_with_indent().

Referenced by Tracer().

359  {
360  log_with_indent(3, "processing path for begin run: " + iName);
361  }
void log_with_indent(unsigned n, std::string const &message) const
void art::Tracer::prePathBeginSubRun ( string const &  s)
private

Definition at line 441 of file Tracer_service.cc.

References log_with_indent().

Referenced by Tracer().

442  {
443  log_with_indent(3, "processing path for begin subRun: " + iName);
444  }
void log_with_indent(unsigned n, std::string const &message) const
void art::Tracer::prePathEndRun ( string const &  s)
private

Definition at line 399 of file Tracer_service.cc.

References log_with_indent().

Referenced by Tracer().

400  {
401  log_with_indent(3, "processing path for end run: " + iName);
402  }
void log_with_indent(unsigned n, std::string const &message) const
void art::Tracer::prePathEndSubRun ( string const &  s)
private

Definition at line 482 of file Tracer_service.cc.

References log_with_indent().

Referenced by Tracer().

483  {
484  log_with_indent(3, "processing path for end subRun: " + iName);
485  }
void log_with_indent(unsigned n, std::string const &message) const
void art::Tracer::prePathEvent ( PathContext const &  pc)
private

Definition at line 316 of file Tracer_service.cc.

References log_with_indent(), and art::PathContext::pathName().

Referenced by Tracer().

317  {
318  log_with_indent(3, "processing path for event: " + pc.pathName());
319  }
void log_with_indent(unsigned n, std::string const &message) const
void art::Tracer::preSourceEvent ( ScheduleContext  )
private

Definition at line 220 of file Tracer_service.cc.

References log_with_indent().

Referenced by Tracer().

221  {
222  log_with_indent(2, "source event");
223  }
void log_with_indent(unsigned n, std::string const &message) const
void art::Tracer::preSourceRun ( )
private

Definition at line 244 of file Tracer_service.cc.

References log_with_indent().

Referenced by Tracer().

245  {
246  log_with_indent(2, "source run");
247  }
void log_with_indent(unsigned n, std::string const &message) const
void art::Tracer::preSourceSubRun ( )
private

Definition at line 232 of file Tracer_service.cc.

References log_with_indent().

Referenced by Tracer().

233  {
234  log_with_indent(2, "source subRun");
235  }
void log_with_indent(unsigned n, std::string const &message) const

Member Data Documentation

string const art::Tracer::indentation_
private

Definition at line 123 of file Tracer_service.cc.

Referenced by log_with_indent().


The documentation for this class was generated from the following file: