CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Typedefs | Functions | Variables
edm::service Namespace Reference

Classes

class  AbstractMLscribe
 
struct  close_and_delete
 
class  CPU
 
class  ELadminDestroyer
 
class  ELadministrator
 
class  ELcollected
 
class  ELcontextSupplier
 
class  ELdestControl
 
class  ELdestination
 
class  ELemptyContextSupplier
 
class  ELerrorList
 
class  ELfwkJobReport
 
class  ELlimitsTable
 
class  ELoutput
 
class  ELsender
 
class  ELservConSup
 
struct  ELsetS
 
class  ELstatistics
 
class  ELtsErrorLog
 
class  EnableFloatingPointExceptions
 
class  ErrorLog
 
class  IgProfService
 
class  InitRootHandlers
 
class  JobReportService
 
class  LoadAllDictionaries
 
class  MainThreadMLscribe
 
class  MessageLogger
 
struct  MessageLoggerDefaults
 
class  MessageLoggerScribe
 
class  MessageServicePresence
 
class  MessageServicePSetValidation
 
class  MsgContext
 
class  NamedDestination
 
class  PathTimerService
 
class  PrescaleService
 
struct  ProcInfo
 
class  ProcInfoFetcher
 
class  RandomNumberGeneratorService
 
class  ResourceEnforcer
 
class  SilentMLscribe
 
class  SimpleMemoryCheck
 
class  SimpleProfiling
 
class  SingleThreadMSPresence
 
class  SiteLocalConfigService
 
struct  smapsInfo
 
class  ThreadQueue
 
class  ThreadSafeErrorLog
 
class  Timing
 
class  Tracer
 
class  TriggerNamesService
 
class  UnixSignalService
 

Typedefs

typedef std::set< ELsetSELset_string
 

Functions

static std::string d2str (double d)
 
static std::string d2str (double d)
 
void ELrecv (int nbytes, const char *data)
 
void ELrecv (int nbytes, const char *data, ELstring localModule)
 
template<class T >
void ELtsItem (ELtsErrorLog &e, const T &t)
 
void ELtsItem (ELtsErrorLog &e, const char s[])
 
void ELtsItem (ELtsErrorLog &e, int n)
 
void ELtsItem (ELtsErrorLog &e, unsigned int n)
 
void ELtsItem (ELtsErrorLog &e, long n)
 
void ELtsItem (ELtsErrorLog &e, unsigned long n)
 
void ELtsItem (ELtsErrorLog &e, short n)
 
void ELtsItem (ELtsErrorLog &e, unsigned short n)
 
void endmsg (ErrorLog &log)
 
static ELstring formatTime (const time_t t)
 
static double getCPU ()
 
static double getTime ()
 
static double getTime ()
 
static std::string i2str (int i)
 
bool isProcessWideService (InitRootHandlers const *)
 
bool isProcessWideService (void const *)
 
bool isProcessWideService (CPU const *)
 
bool isProcessWideService (TFileService const *)
 
bool isProcessWideService (TFileAdaptor const *)
 
bool isProcessWideService (JobReportService const *)
 
bool isProcessWideService (SiteLocalConfigService const *)
 
bool isProcessWideService (MessageLogger const *)
 
static void msgabort ()
 
static void msgabort ()
 
static void msgabort ()
 
static void msgexit (int s)
 
static void msgexit (int s)
 
template<class Mutex , class T >
ThreadSafeErrorLog< Mutex > & operator<< (ThreadSafeErrorLog< Mutex > &e, const T &t)
 
template<class Mutex >
ThreadSafeErrorLog< Mutex > & operator<< (ThreadSafeErrorLog< Mutex > &e, void(*f)(ErrorLog &))
 
template<class T >
ErrorLogoperator<< (ErrorLog &e, const T &t)
 
ErrorLogoperator<< (ErrorLog &e, int n)
 
ErrorLogoperator<< (ErrorLog &e, long n)
 
ErrorLogoperator<< (ErrorLog &e, short n)
 
ErrorLogoperator<< (ErrorLog &e, unsigned int n)
 
ErrorLogoperator<< (ErrorLog &e, unsigned long n)
 
ErrorLogoperator<< (ErrorLog &e, unsigned short n)
 
ErrorLogoperator<< (ErrorLog &e, const char s[])
 
std::ostream & operator<< (std::ostream &os, SimpleMemoryCheck::SignificantEvent const &se)
 
std::ostream & operator<< (std::ostream &os, SimpleMemoryCheck::SignificantModule const &sm)
 
static void possiblyAbOrEx (int s, int a, int e)
 
static void possiblyAbortOrExit (int s, int a, int e)
 
void swap (ELtsErrorLog &a, ELtsErrorLog &b)
 

Variables

static ELemptyContextSupplier emptyContext
 
static ELstring hereMsg = "available via this destination"
 
static ELstring noClearSummaryMsg = "No clearSummary()"
 
static ELstring noosMsg = "No ostream"
 
static ELstring noSummarizationMsg = "No summarization()"
 
static ELstring noSummaryMsg = "No summary()"
 
static ELstring notELoutputMsg = "This destination is not an ELoutput"
 

Typedef Documentation

Definition at line 33 of file ELset.h.

Function Documentation

static std::string edm::service::d2str ( double  d)
static

Definition at line 57 of file Timing.cc.

References lumiQTWidget::t.

57  {
58  std::stringstream t;
59  t << d;
60  return t.str();
61  }
static std::string edm::service::d2str ( double  d)
static

Definition at line 59 of file Memory.cc.

References lumiQTWidget::t.

Referenced by edm::service::SimpleMemoryCheck::eventStatOutput(), edm::service::CPU::postEndJob(), edm::service::Timing::postEndJob(), and edm::service::SimpleMemoryCheck::postEndJob().

59  {
60  std::ostringstream t;
61  t << d;
62  return t.str();
63  }
void edm::service::ELrecv ( int  nbytes,
const char *  data 
)

Definition at line 42 of file ELrecv.cc.

Referenced by edm::service::ErrorLog::operator()().

42  {
43  ELrecv ( nbytes, data, "*ELrecv*" );
44 }
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
void ELrecv(int nbytes, const char *data)
Definition: ELrecv.cc:42
void edm::service::ELrecv ( int  nbytes,
const char *  data,
ELstring  localModule 
)

Definition at line 47 of file ELrecv.cc.

References data, diffTreeTool::diff, edm::ELerror2, edm::ELseverityLevel::ELsev_highestSeverity, edm::ELseverityLevel::ELsev_unspecified, edm::ELseverityLevel::ELsev_zeroSeverity, endmsg(), errorMatrix2Lands_multiChannel::id, edm::service::ELadministrator::instance(), fwlog::logger(), python.rootplot.argparse::module, LaserDQM_cfg::process, edm::service::ELservConSup::setContext(), edm::service::ELservConSup::setFullContext(), edm::service::ErrorLog::setModule(), edm::service::ErrorLog::setSubroutine(), edm::service::ELservConSup::setSummaryContext(), edm::service::ELadministrator::swapContextSupplier(), and edm::service::ELadministrator::swapProcess().

47  {
48 
49  static const int MAXITEMCOUNT = 100;
50 
51  static ErrorLog errlog;
52  static ELservConSup con;
53  static ELadministrator * logger = ELadministrator::instance();
54 
55  // Pull out the extended id. Carefully look at ELcollected::emitXid to
56  // make certain we take things out in the proper order.
57 
60  ELstring subroutine;
61  ELstring id;
62  ELstring sevString;
63  int sevLevel;
64 
65  const char * nextItem = data;
66 
67  process = nextItem;
68  nextItem += strlen(nextItem) + 1;
69 
70  if (localModule == "*ELrecv*") module = nextItem;
71  else module = localModule + ":" + nextItem;
72  nextItem += strlen(nextItem) + 1;
73 
74  subroutine = nextItem;
75  nextItem += strlen(nextItem) + 1;
76 
77  id = nextItem;
78  nextItem += strlen(nextItem) + 1;
79 
80  sevString = nextItem;
81  nextItem += strlen(nextItem) + 1;
82  std::istringstream ist (sevString);
83  if ( ! (ist >> sevLevel) ) {
84  // This should not be possible. But if it does, we don't want to
85  // kill off the probably critical error monitoring job!
86  errlog ( ELerror2, "Collection Error" ) <<
87  "An error message received has an unreadable value of severity level"
88  << sevString << endmsg;
89  sevLevel = ELseverityLevel::ELsev_unspecified;
90  }
91  if ( sevLevel < ELseverityLevel::ELsev_zeroSeverity ||
92  sevLevel > ELseverityLevel::ELsev_highestSeverity ) {
93  // Again, this should not be possible.
94  errlog ( ELerror2, "Collection Error" ) <<
95  "An error message received has an out-of-range value of severity level"
96  << sevString << endmsg;
97  sevLevel = ELseverityLevel::ELsev_unspecified;
98  }
99 
100  // Pull out the context strings and set up the special supplier.
101 
102  ELstring context;
103 
104  context = nextItem;
105  nextItem += strlen(nextItem) + 1;
106  con.setSummaryContext( context );
107 
108  context = nextItem;
109  nextItem += strlen(nextItem) + 1;
110  con.setContext( context );
111 
112  context = nextItem;
113  nextItem += strlen(nextItem) + 1;
114  con.setFullContext( context );
115 
116  // Remember the context supplier, and substitute the special supplier.
117 
118  ELcontextSupplier & oldCS = logger->swapContextSupplier(con);
119 
120  // Set the module, subroutine, and process according to this xid.
121 
122  ELstring oldProcess = logger->swapProcess(process);
123  errlog.setModule (module);
124  errlog.setSubroutine(subroutine);
125 
126  // Instantiate a message with the appropriate severity level and id.
127 
128  errlog ( ELseverityLevel( ELseverityLevel::ELsev_(sevLevel)), id );
129 
130  // Add the remaining items to this message.
131  // To avoid any possibility of a completely runaway message, we limit
132  // the number of items output to 100 by doing a for instead of a while
133  // loop.
134 
135  ELstring item;
136  int itemCount;
137  for ( itemCount = 0; itemCount < MAXITEMCOUNT; itemCount++ ) {
138  if (*nextItem == 0) break;
139  item = nextItem;
140  nextItem += strlen(nextItem) + 1;
141  errlog << item;
142  }
143 
144  // If the direct ELrecv form was used, end the message,
145  // thus causing the logging. If the errlog (nbytes, data) form was
146  // used, the user will supply the endmsg.
147 
148  if ( localModule == "*ELrecv*" ) {
149  errlog << endmsg;
150  }
151 
152  if ( *nextItem++ != 0 ) {
153  errlog << endmsg;
154  errlog ( ELerror2, "Collection Error" ) <<
155  "Apparent runaway error message on the previous message!" <<
156  "Truncated after " << MAXITEMCOUNT << "items." << endmsg;
157  }
158  int diff = nextItem - data;
159  if ( diff != nbytes ) {
160  errlog << endmsg;
161  errlog ( ELerror2, "Collection Error" ) <<
162  "Apparent corrupted transmission of error message"
163  << "on the previous message!"
164  << "Total length was" << diff << "nbytes transmitted was" << nbytes
165  << endmsg;
166  }
167 
168  // End the message, before we swap back the context and process.
169  // (This is what makes the endmsg in errlog(nbytes, data) << endmsg
170  // superfluous.)
171 
172  errlog << endmsg;
173 
174  // Reset the context supplier and process to the remembered value.
175 
176  logger->swapContextSupplier(oldCS);
177  logger->swapProcess(oldProcess);
178 
179 } // ELrecv()
static PFTauRenderPlugin instance
std::ostream & logger()
Definition: fwLog.cc:41
void endmsg(ErrorLog &)
ELslProxy< ELerror2Gen > const ELerror2
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
tuple process
Definition: LaserDQM_cfg.py:3
std::string ELstring
Definition: ELstring.h:26
template<class T >
void edm::service::ELtsItem ( ELtsErrorLog &  e,
const T t 
)
inline
void edm::service::ELtsItem ( ELtsErrorLog &  e,
const char  s[] 
)
inline
void edm::service::ELtsItem ( ELtsErrorLog &  e,
int  n 
)
inline
void edm::service::ELtsItem ( ELtsErrorLog &  e,
unsigned int  n 
)
inline
void edm::service::ELtsItem ( ELtsErrorLog &  e,
long  n 
)
inline
void edm::service::ELtsItem ( ELtsErrorLog &  e,
unsigned long  n 
)
inline
void edm::service::ELtsItem ( ELtsErrorLog &  e,
short  n 
)
inline
void edm::service::ELtsItem ( ELtsErrorLog &  e,
unsigned short  n 
)
inline
void edm::service::endmsg ( ErrorLog &  log)

Definition at line 357 of file ErrorLog.cc.

References edm::service::ErrorLog::endmsg().

Referenced by ELrecv().

static ELstring edm::service::formatTime ( const time_t  t)
static

Definition at line 101 of file ELoutput.cc.

References b, and query::result.

Referenced by edm::service::ELoutput::changeFile(), edm::service::ELoutput::ELoutput(), and edm::service::ELoutput::log().

101  { // Change log 7
102 
103  static char const dummy[] = "dd-Mon-yyyy hh:mm:ss TZN "; // Change log 7 for length only
104  char ts[sizeof(dummy)]; // Change log 7
105 
106  struct tm timebuf; // Change log 7
107 
108  strftime( ts, sizeof(dummy), "%d-%b-%Y %H:%M:%S %Z", localtime_r(&t, &timebuf) ); // Change log 7
109  // mf 4-9-04
110 
111 #ifdef STRIP_TRAILING_BLANKS_IN_TIMEZONE
112  // strip trailing blanks that would come when the time zone is not as
113  // long as the maximum allowed - probably not worth the time
114  unsigned int b = strlen(ts);
115  while (ts[--b] == ' ') {ts[b] = 0;}
116 #endif
117 
118  ELstring result(ts); // Change log 7
119  return result; // Change log 7
120 } // formatTime()
tuple result
Definition: query.py:137
double b
Definition: hdecay.h:120
std::string ELstring
Definition: ELstring.h:26
static double edm::service::getCPU ( )
static

Definition at line 70 of file Timing.cc.

Referenced by edm::service::Timing::postBeginJob(), edm::service::Timing::postEndJob(), edm::service::Timing::postEventProcessing(), and edm::service::Timing::preEventProcessing().

70  {
71  struct rusage usage;
72  getrusage(RUSAGE_SELF, &usage);
73 
74  double totalCPUTime = 0.0;
75  // User code
76  totalCPUTime = (double)usage.ru_utime.tv_sec + (double(usage.ru_utime.tv_usec) * 1E-6);
77  // System functions
78  totalCPUTime += (double)usage.ru_stime.tv_sec + (double(usage.ru_stime.tv_usec) * 1E-6);
79  return totalCPUTime;
80  }
void usage()
Definition: array2xmlEB.cc:14
static double edm::service::getTime ( )
static
static double edm::service::getTime ( )
static

Definition at line 63 of file Timing.cc.

References edm::hlt::Exception.

63  {
64  struct timeval t;
65  if(gettimeofday(&t, 0) < 0)
66  throw cms::Exception("SysCallFailed", "Failed call to gettimeofday");
67  return static_cast<double>(t.tv_sec) + (static_cast<double>(t.tv_usec) * 1E-6);
68  }
static std::string edm::service::i2str ( int  i)
static

Definition at line 65 of file Memory.cc.

References i, and lumiQTWidget::t.

Referenced by edm::service::SimpleMemoryCheck::eventStatOutput(), edm::service::CPU::postEndJob(), and edm::service::SimpleMemoryCheck::postEndJob().

65  {
66  std::ostringstream t;
67  t << i;
68  return t.str();
69  }
int i
Definition: DBlmapReader.cc:9
bool edm::service::isProcessWideService ( InitRootHandlers const *  )
inline

Definition at line 29 of file InitRootHandlers.h.

29  {
30  return true;
31  }
bool edm::service::isProcessWideService ( void const *  )
inline

Definition at line 30 of file ServiceMakerBase.h.

30  {
31  return false;
32  }
bool edm::service::isProcessWideService ( CPU const *  )
inline

Definition at line 37 of file CPU.h.

37  {
38  return true;
39  }
bool edm::service::isProcessWideService ( TFileService const *  )
inline

Definition at line 43 of file TFileService.h.

Referenced by edm::serviceregistry::ServiceMaker< T, TMaker >::processWideService().

43  {
44  return true;
45  }
bool edm::service::isProcessWideService ( TFileAdaptor const *  )
inline

Definition at line 49 of file TFileAdaptor.h.

49  {
50  return true;
51  }
bool edm::service::isProcessWideService ( JobReportService const *  )
inline

Definition at line 55 of file JobReportService.h.

55  {
56  return true;
57  }
bool edm::service::isProcessWideService ( SiteLocalConfigService const *  )
inline

Definition at line 73 of file SiteLocalConfigService.h.

73  {
74  return true;
75  }
bool edm::service::isProcessWideService ( MessageLogger const *  )
inline

Definition at line 152 of file MessageLogger.h.

152  {
153  return true;
154  }
static void edm::service::msgabort ( )
inlinestatic

Definition at line 162 of file ErrorLog.cc.

References alignCSCRings::e, and edm::errors::LogicError.

162  {
163  std::ostringstream os;
164  os << "msgabort - MessageLogger Log requested to abort";
166  throw e;
167 }
static void edm::service::msgabort ( )
inlinestatic

Definition at line 288 of file ELadministrator.cc.

References alignCSCRings::e, and edm::errors::LogicError.

Referenced by edm::service::ELtsErrorLog::dispatch(), possiblyAbOrEx(), and possiblyAbortOrExit().

288  {
289  std::ostringstream os;
290  os << "msgabort - MessageLogger requested to abort";
292  throw e;
293 }
static void edm::service::msgabort ( )
inlinestatic

Definition at line 316 of file ELtsErrorLog.cc.

References alignCSCRings::e, and edm::errors::LogicError.

316  {
318  "msgabort - MessageLogger tsErrorLog requested to abort");
319  throw e;
320 }
static void edm::service::msgexit ( int  s)
inlinestatic

Definition at line 155 of file ErrorLog.cc.

References alignCSCRings::e, edm::errors::LogicError, and alignCSCRings::s.

155  {
156  std::ostringstream os;
157  os << "msgexit - MessageLogger Log requested to exit with status " << s;
159  throw e;
160 }
static void edm::service::msgexit ( int  s)
inlinestatic

Definition at line 281 of file ELadministrator.cc.

References alignCSCRings::e, edm::errors::LogicError, and alignCSCRings::s.

Referenced by possiblyAbOrEx(), and possiblyAbortOrExit().

281  {
282  std::ostringstream os;
283  os << "msgexit - MessageLogger requested to exit with status " << s;
285  throw e;
286 }
template<class Mutex , class T >
ThreadSafeErrorLog<Mutex>& edm::service::operator<< ( ThreadSafeErrorLog< Mutex > &  e,
const T t 
)
inline
template<class Mutex >
ThreadSafeErrorLog<Mutex>& edm::service::operator<< ( ThreadSafeErrorLog< Mutex > &  e,
void(*)(ErrorLog &)  f 
)
inline
template<class T >
ErrorLog& edm::service::operator<< ( ErrorLog &  e,
const T t 
)
inline
ErrorLog & edm::service::operator<< ( ErrorLog &  e,
int  n 
)

Definition at line 363 of file ErrorLog.cc.

References edm::service::ErrorLog::discarding, alignCSCRings::e, edm::service::ErrorLog::emitToken(), edm::service::ErrorLog::hexTrigger, m, n, and edm::service::ErrorLog::spaceAfterInt.

363  {
364  if (e.discarding) return e;
365  std::ostringstream ost;
366  ost << n;
367  int m = (n<0) ? -n : n;
368  if ( (e.hexTrigger >= 0) && (m >= e.hexTrigger) ) {
369  ost << " [0x"
370  << std::hex << std::setw(8) << std::setfill('0')
371  << n << "] ";
372  } else {
373  if (e.spaceAfterInt) ost << " "; // $$mf 3/17/04
374  }
375  return e.emitToken( ost.str() );
376 }
ErrorLog & edm::service::operator<< ( ErrorLog &  e,
long  n 
)

Definition at line 393 of file ErrorLog.cc.

References edm::service::ErrorLog::discarding, alignCSCRings::e, edm::service::ErrorLog::emitToken(), edm::service::ErrorLog::hexTrigger, dttmaxenums::L, m, n, edm::service::ErrorLog::spaceAfterInt, and tablePrinter::width.

393  {
394  if (e.discarding) return e;
395  std::ostringstream ost;
396  ost << n;
397  long m = (n<0) ? -n : n;
398  if ( (e.hexTrigger >= 0) && (m >= e.hexTrigger) ) {
399  int width = 8;
400  if ( static_cast<unsigned long>(n) > 0xFFFFFFFFL ) width = 16;
401  ost << "[0x"
402  << std::hex << std::setw(width) << std::setfill('0')
403  << n << "] ";
404  } else {
405  if (e.spaceAfterInt) ost << " "; // $$mf 3/17/04
406  }
407  return e.emitToken( ost.str() );
408 }
ErrorLog & edm::service::operator<< ( ErrorLog &  e,
short  n 
)

Definition at line 427 of file ErrorLog.cc.

References edm::service::ErrorLog::discarding, alignCSCRings::e, edm::service::ErrorLog::emitToken(), edm::service::ErrorLog::hexTrigger, m, n, and edm::service::ErrorLog::spaceAfterInt.

427  {
428  if (e.discarding) return e;
429  std::ostringstream ost;
430  ost << n;
431  short m = (n<0) ? -n : n;
432  if ( (e.hexTrigger >= 0) && (m >= e.hexTrigger) ) {
433  ost << "[0x"
434  << std::hex << std::setw(4) << std::setfill('0')
435  << n << "] ";
436  } else {
437  if (e.spaceAfterInt) ost << " "; // $$mf 3/17/04
438  }
439  return e.emitToken( ost.str() );
440 }
ErrorLog & edm::service::operator<< ( ErrorLog &  e,
unsigned int  n 
)

Definition at line 378 of file ErrorLog.cc.

References edm::service::ErrorLog::discarding, alignCSCRings::e, edm::service::ErrorLog::emitToken(), edm::service::ErrorLog::hexTrigger, n, and edm::service::ErrorLog::spaceAfterInt.

378  {
379  if (e.discarding) return e;
380  std::ostringstream ost;
381  ost << n;
382  if ( (e.hexTrigger >= 0) &&
383  (n >= static_cast<unsigned int>(e.hexTrigger)) ) {
384  ost << "[0x"
385  << std::hex << std::setw(8) << std::setfill('0')
386  << n << "] ";
387  } else {
388  if (e.spaceAfterInt) ost << " "; // $$mf 3/17/04
389  }
390  return e.emitToken( ost.str() );
391 }
ErrorLog & edm::service::operator<< ( ErrorLog &  e,
unsigned long  n 
)

Definition at line 410 of file ErrorLog.cc.

References edm::service::ErrorLog::discarding, alignCSCRings::e, edm::service::ErrorLog::emitToken(), edm::service::ErrorLog::hexTrigger, n, edm::service::ErrorLog::spaceAfterInt, and tablePrinter::width.

410  {
411  if (e.discarding) return e;
412  std::ostringstream ost;
413  ost << n;
414  if ( (e.hexTrigger >= 0) &&
415  (n >= static_cast<unsigned long>(e.hexTrigger)) ) {
416  int width = 8;
417  if ( n > 0xFFFFFFFFL ) width = 16;
418  ost << "[0x"
419  << std::hex << std::setw(width) << std::setfill('0')
420  << n << "] ";
421  } else {
422  if (e.spaceAfterInt) ost << " "; // $$mf 3/17/04
423  }
424  return e.emitToken( ost.str() );
425 }
ErrorLog & edm::service::operator<< ( ErrorLog &  e,
unsigned short  n 
)

Definition at line 442 of file ErrorLog.cc.

References edm::service::ErrorLog::discarding, alignCSCRings::e, edm::service::ErrorLog::emitToken(), edm::service::ErrorLog::hexTrigger, n, and edm::service::ErrorLog::spaceAfterInt.

442  {
443  if (e.discarding) return e;
444  std::ostringstream ost;
445  ost << n;
446  if ( (e.hexTrigger >= 0) && (n >= e.hexTrigger) ) {
447  ost << "[0x"
448  << std::hex << std::setw(4) << std::setfill('0')
449  << n << "] ";
450  } else {
451  if (e.spaceAfterInt) ost << " "; // $$mf 3/17/04
452  }
453  return e.emitToken( ost.str() );
454 }
ErrorLog & edm::service::operator<< ( ErrorLog &  e,
const char  s[] 
)

Definition at line 461 of file ErrorLog.cc.

References edm::service::ErrorLog::discarding, alignCSCRings::e, and edm::service::ErrorLog::emitToken().

461  {
462  // Exactly equivalent to the general template.
463  // If this is not provided explicitly, then the template will
464  // be instantiated once for each length of string ever used.
465  if (e.discarding) return e;
466  std::ostringstream ost;
467  ost << s << ' ';
468  return e.emitToken( ost.str() );
469 }
std::ostream & edm::service::operator<< ( std::ostream &  os,
SimpleMemoryCheck::SignificantEvent const &  se 
)

Definition at line 733 of file Memory.cc.

References edm::service::SimpleMemoryCheck::SignificantEvent::count, edm::service::SimpleMemoryCheck::SignificantEvent::deltaRss, edm::service::SimpleMemoryCheck::SignificantEvent::deltaVsize, edm::service::SimpleMemoryCheck::SignificantEvent::event, edm::service::SimpleMemoryCheck::SignificantEvent::monitorPssAndPrivate, edm::service::SimpleMemoryCheck::SignificantEvent::privateSize, edm::service::SimpleMemoryCheck::SignificantEvent::pss, edm::service::SimpleMemoryCheck::SignificantEvent::rss, and edm::service::SimpleMemoryCheck::SignificantEvent::vsize.

734  {
735  os << "[" << se.count << "] "
736  << se.event << " vsize = " << se.vsize
737  << " deltaVsize = " << se.deltaVsize
738  << " rss = " << se.rss << " delta = " << se.deltaRss;
739 
740  if (se.monitorPssAndPrivate) {
741  os <<" private = "<<se.privateSize<<" pss = "<<se.pss;
742  }
743  return os;
744  }
std::ostream & edm::service::operator<< ( std::ostream &  os,
SimpleMemoryCheck::SignificantModule const &  sm 
)

Definition at line 747 of file Memory.cc.

References edm::service::SimpleMemoryCheck::SignificantModule::eventMaxDeltaV, edm::service::SimpleMemoryCheck::SignificantModule::maxDeltaVsize, edm::service::SimpleMemoryCheck::SignificantModule::maxEarlyVsize, edm::service::SimpleMemoryCheck::SignificantModule::postEarlyCount, edm::service::SimpleMemoryCheck::SignificantModule::totalDeltaVsize, and edm::service::SimpleMemoryCheck::SignificantModule::totalEarlyVsize.

748  {
749  if(sm.postEarlyCount > 0) {
750  os << "\nPost Early Events: TotalDeltaVsize: " << sm.totalDeltaVsize
751  << " (avg: " << sm.totalDeltaVsize/sm.postEarlyCount
752  << "; max: " << sm.maxDeltaVsize
753  << " during " << sm.eventMaxDeltaV << ")";
754  }
755  if(sm.totalEarlyVsize > 0) {
756  os << "\n Early Events: TotalDeltaVsize: " << sm.totalEarlyVsize
757  << " (max: " << sm.maxEarlyVsize << ")";
758  }
759 
760  return os;
761  }
static void edm::service::possiblyAbOrEx ( int  s,
int  a,
int  e 
)
inlinestatic

Definition at line 169 of file ErrorLog.cc.

References msgabort(), and msgexit().

Referenced by edm::service::ErrorLog::operator()().

169  {
170  if (s < a && s < e) return;
171  if (a < e) {
172  if ( s < e ) msgabort();
173  msgexit(s);
174  } else {
175  if ( s < a ) msgexit(s);
176  msgabort();
177  }
178 }
static void msgabort()
double a
Definition: hdecay.h:121
static void msgexit(int s)
static void edm::service::possiblyAbortOrExit ( int  s,
int  a,
int  e 
)
inlinestatic

Definition at line 295 of file ELadministrator.cc.

References msgabort(), and msgexit().

Referenced by edm::service::ELadministrator::finishMsg().

295  {
296  if (s < a && s < e) return;
297  if (a < e) {
298  if ( s < e ) msgabort();
299  msgexit(s);
300  } else {
301  if ( s < a ) msgexit(s);
302  msgabort();
303  }
304 }
static void msgabort()
double a
Definition: hdecay.h:121
static void msgexit(int s)
void edm::service::swap ( ELtsErrorLog &  a,
ELtsErrorLog &  b 
)
inline

Definition at line 139 of file ELtsErrorLog.h.

References edm::service::ELtsErrorLog::swap().

139  {
140  a.swap(b);
141 }
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121

Variable Documentation

ELemptyContextSupplier edm::service::emptyContext
static

Definition at line 473 of file ELadministrator.cc.

ELstring edm::service::hereMsg = "available via this destination"
static
ELstring edm::service::noClearSummaryMsg = "No clearSummary()"
static

Definition at line 93 of file ELdestination.cc.

Referenced by edm::service::ELdestination::clearSummary().

ELstring edm::service::noosMsg = "No ostream"
static
ELstring edm::service::noSummarizationMsg = "No summarization()"
static

Definition at line 91 of file ELdestination.cc.

Referenced by edm::service::ELdestination::summarization().

ELstring edm::service::noSummaryMsg = "No summary()"
static

Definition at line 92 of file ELdestination.cc.

Referenced by edm::service::ELdestination::summary().

ELstring edm::service::notELoutputMsg = "This destination is not an ELoutput"
static

Definition at line 96 of file ELdestination.cc.

Referenced by edm::service::ELdestination::changeFile().