Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
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.

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)
fhicl::Atom< string > indentation
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)
static Config * config
Definition: config.cpp:1054
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

Definition at line 195 of file Tracer_service.cc.

196  {
197  std::string printout;
198  for (; n != 0u; --n) {
199  printout.append(indentation_);
200  }
201  printout += ' ';
202  printout += message;
203  printout += '\n';
204  std::cout << printout;
205  }
std::string string
Definition: nybbler.cc:12
std::void_t< T > n
string const indentation_
void art::Tracer::postBeginJob ( )
private

Definition at line 208 of file Tracer_service.cc.

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 351 of file Tracer_service.cc.

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

Definition at line 434 of file Tracer_service.cc.

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

Definition at line 274 of file Tracer_service.cc.

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

Definition at line 292 of file Tracer_service.cc.

293  {
294  string const fn{info.fileName().empty() ? "<none>"s : info.fileName()};
296  2, "finished close output file " + fn + " from " + info.moduleLabel());
297  }
void log_with_indent(unsigned n, std::string const &message) const
QAsciiDict< Entry > fn
static QCString * s
Definition: config.cpp:1042
void art::Tracer::postEndJob ( )
private

Definition at line 214 of file Tracer_service.cc.

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 392 of file Tracer_service.cc.

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

Definition at line 475 of file Tracer_service.cc.

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

Definition at line 309 of file Tracer_service.cc.

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

Definition at line 525 of file Tracer_service.cc.

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

Definition at line 376 of file Tracer_service.cc.

377  {
378  --depth_;
379  log_with_indent(4 + depth_, "finished for begin run: " + mc.moduleLabel());
380  }
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 459 of file Tracer_service.cc.

460  {
461  --depth_;
462  log_with_indent(4, "finished for begin subRun: " + mc.moduleLabel());
463  }
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 513 of file Tracer_service.cc.

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

Definition at line 537 of file Tracer_service.cc.

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

Definition at line 417 of file Tracer_service.cc.

418  {
419  --depth_;
420  log_with_indent(4 + depth_, "finished for end run: " + mc.moduleLabel());
421  }
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 500 of file Tracer_service.cc.

501  {
502  --depth_;
503  log_with_indent(4 + depth_, "finished for end subRun: " + mc.moduleLabel());
504  }
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 334 of file Tracer_service.cc.

335  {
336  --depth_;
337  log_with_indent(4 + depth_, "finished for event: " + mc.moduleLabel());
338  }
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 261 of file Tracer_service.cc.

262  {
263  string const displayed_fn{fn.empty() ? "<none>"s : fn};
264  log_with_indent(2, "finished open input file: " + displayed_fn);
265  }
void log_with_indent(unsigned n, std::string const &message) const
QAsciiDict< Entry > fn
static QCString * s
Definition: config.cpp:1042
void art::Tracer::postOpenOutputFile ( string const &  label)
private

Definition at line 280 of file Tracer_service.cc.

281  {
282  log_with_indent(2, "opened output file from " + label);
283  }
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 363 of file Tracer_service.cc.

364  {
365  log_with_indent(3, "finished path for begin run");
366  }
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 446 of file Tracer_service.cc.

447  {
448  log_with_indent(3, "finished path for begin subRun");
449  }
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 404 of file Tracer_service.cc.

405  {
406  log_with_indent(3, "finished path for end run");
407  }
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 487 of file Tracer_service.cc.

488  {
489  log_with_indent(3, "finished path for end subRun");
490  }
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 321 of file Tracer_service.cc.

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

Definition at line 225 of file Tracer_service.cc.

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

Definition at line 249 of file Tracer_service.cc.

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

Definition at line 237 of file Tracer_service.cc.

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

Definition at line 341 of file Tracer_service.cc.

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

Definition at line 424 of file Tracer_service.cc.

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

Definition at line 268 of file Tracer_service.cc.

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

Definition at line 286 of file Tracer_service.cc.

287  {
288  log_with_indent(2, "close output file from " + label);
289  }
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 383 of file Tracer_service.cc.

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

Definition at line 466 of file Tracer_service.cc.

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

Definition at line 300 of file Tracer_service.cc.

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

Definition at line 519 of file Tracer_service.cc.

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

Definition at line 369 of file Tracer_service.cc.

370  {
371  ++depth_;
372  log_with_indent(3 + depth_, "module for begin run: " + mc.moduleLabel());
373  }
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 452 of file Tracer_service.cc.

453  {
454  ++depth_;
455  log_with_indent(3 + depth_, "module for begin subRun: " + mc.moduleLabel());
456  }
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 507 of file Tracer_service.cc.

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

Definition at line 531 of file Tracer_service.cc.

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

Definition at line 410 of file Tracer_service.cc.

411  {
412  ++depth_;
413  log_with_indent(3 + depth_, "module for end run: " + mc.moduleLabel());
414  }
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 493 of file Tracer_service.cc.

494  {
495  ++depth_;
496  log_with_indent(3 + depth_, "module for end subRun: " + mc.moduleLabel());
497  }
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 327 of file Tracer_service.cc.

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

Definition at line 255 of file Tracer_service.cc.

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

Definition at line 357 of file Tracer_service.cc.

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

Definition at line 440 of file Tracer_service.cc.

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

Definition at line 398 of file Tracer_service.cc.

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

Definition at line 481 of file Tracer_service.cc.

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

Definition at line 315 of file Tracer_service.cc.

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

Definition at line 219 of file Tracer_service.cc.

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

Definition at line 243 of file Tracer_service.cc.

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

Definition at line 231 of file Tracer_service.cc.

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

Member Data Documentation

std::atomic<unsigned int> art::Tracer::depth_ {}
private

Definition at line 124 of file Tracer_service.cc.

string const art::Tracer::indentation_
private

Definition at line 123 of file Tracer_service.cc.


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