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  ConcurrentModuleTimer
 
class  CPU
 
class  ELadministrator
 
class  ELdestControl
 
class  ELdestination
 
class  ELlimitsTable
 
class  ELoutput
 
struct  ELsetS
 
class  ELstatistics
 
class  EnableFloatingPointExceptions
 
class  IgProfService
 
class  InitRootHandlers
 
class  JobReportService
 
class  LoadAllDictionaries
 
class  MainThreadMLscribe
 
class  MessageLogger
 
struct  MessageLoggerDefaults
 
class  MessageLoggerScribe
 
class  MessageServicePresence
 
class  MessageServicePSetValidation
 
class  NamedDestination
 
class  PathTimerService
 
class  PrescaleService
 
struct  ProcInfo
 
class  ProcInfoFetcher
 
class  RandomNumberGeneratorService
 
class  ResourceEnforcer
 
class  SilentMLscribe
 
class  SimpleMemoryCheck
 
class  SingleThreadMSPresence
 
class  SiteLocalConfigService
 
struct  smapsInfo
 
class  SystemBounds
 
class  ThreadQueue
 
class  ThreadSafeLogMessageLoggerScribe
 
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)
 
static ELstring formatTime (const time_t t)
 
static double getCPU ()
 
static double getTime ()
 
static double getTime ()
 
static std::string i2str (int i)
 
bool isProcessWideService (void const *)
 
bool isProcessWideService (InitRootHandlers const *)
 
bool isProcessWideService (CPU const *)
 
bool isProcessWideService (JobReportService const *)
 
bool isProcessWideService (TFileAdaptor const *)
 
bool isProcessWideService (SiteLocalConfigService const *)
 
bool isProcessWideService (TFileService const *)
 
bool isProcessWideService (MessageLogger const *)
 
static std::vector< double > & moduleTimeStack ()
 
std::ostream & operator<< (std::ostream &os, SimpleMemoryCheck::SignificantEvent const &se)
 
std::ostream & operator<< (std::ostream &os, SimpleMemoryCheck::SignificantModule const &sm)
 
static std::string summarizeContext (const std::string &c)
 

Variables

static const ELstring hereMsg = "available via this destination"
 
static const ELstring noClearSummaryMsg = "No clearSummary()"
 
static const ELstring noosMsg = "No ostream"
 
static const ELstring noSummarizationMsg = "No summarization()"
 
static const ELstring noSummaryMsg = "No summary()"
 
static const 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 34 of file Timing.cc.

References edmStreamStallGrapher::t.

34  {
35  std::stringstream t;
36  t << d;
37  return t.str();
38  }
static std::string edm::service::d2str ( double  d)
static
static ELstring edm::service::formatTime ( const time_t  t)
static

Definition at line 100 of file ELoutput.cc.

References b, and query::result.

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

100  { // Change log 7
101 
102  static char const dummy[] = "dd-Mon-yyyy hh:mm:ss TZN "; // Change log 7 for length only
103  char ts[sizeof(dummy)]; // Change log 7
104 
105  struct tm timebuf; // Change log 7
106 
107  strftime( ts, sizeof(dummy), "%d-%b-%Y %H:%M:%S %Z", localtime_r(&t, &timebuf) ); // Change log 7
108  // mf 4-9-04
109 
110 #ifdef STRIP_TRAILING_BLANKS_IN_TIMEZONE
111  // strip trailing blanks that would come when the time zone is not as
112  // long as the maximum allowed - probably not worth the time
113  unsigned int b = strlen(ts);
114  while (ts[--b] == ' ') {ts[b] = 0;}
115 #endif
116 
117  ELstring result(ts); // Change log 7
118  return result; // Change log 7
119 } // 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 47 of file Timing.cc.

Referenced by edm::service::Timing::postBeginJob(), edm::service::Timing::postEndJob(), edm::service::Timing::postEvent(), and edm::service::Timing::preEvent().

47  {
48  struct rusage usage;
49  getrusage(RUSAGE_SELF, &usage);
50 
51  double totalCPUTime = 0.0;
52  // User code
53  totalCPUTime = (double)usage.ru_utime.tv_sec + (double(usage.ru_utime.tv_usec) * 1E-6);
54  // System functions
55  totalCPUTime += (double)usage.ru_stime.tv_sec + (double(usage.ru_stime.tv_usec) * 1E-6);
56  return totalCPUTime;
57  }
void usage()
Definition: array2xmlEB.cc:14
static double edm::service::getTime ( )
static
static double edm::service::getTime ( )
static

Definition at line 40 of file Timing.cc.

References edm::hlt::Exception.

40  {
41  struct timeval t;
42  if(gettimeofday(&t, 0) < 0)
43  throw cms::Exception("SysCallFailed", "Failed call to gettimeofday");
44  return static_cast<double>(t.tv_sec) + (static_cast<double>(t.tv_usec) * 1E-6);
45  }
static std::string edm::service::i2str ( int  i)
static

Definition at line 68 of file Memory.cc.

References i, and edmStreamStallGrapher::t.

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

68  {
69  std::ostringstream t;
70  t << i;
71  return t.str();
72  }
int i
Definition: DBlmapReader.cc:9
bool edm::service::isProcessWideService ( void const *  )
inline

Definition at line 30 of file ServiceMakerBase.h.

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

Definition at line 36 of file InitRootHandlers.h.

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

Definition at line 37 of file CPU.h.

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

Definition at line 47 of file JobReportService.h.

47  {
48  return true;
49  }
bool edm::service::isProcessWideService ( TFileAdaptor const *  )
inline

Definition at line 52 of file TFileAdaptor.h.

52  {
53  return true;
54  }
bool edm::service::isProcessWideService ( SiteLocalConfigService const *  )
inline

Definition at line 84 of file SiteLocalConfigService.h.

84  {
85  return true;
86  }
bool edm::service::isProcessWideService ( TFileService const *  )
inline

Definition at line 99 of file TFileService.h.

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

99  {
100  return true;
101  }
bool edm::service::isProcessWideService ( MessageLogger const *  )
inline

Definition at line 178 of file MessageLogger.h.

178  {
179  return true;
180  }
static std::vector<double>& edm::service::moduleTimeStack ( )
static

Definition at line 63 of file Timing.cc.

Referenced by edm::service::Timing::postModule(), and edm::service::Timing::preModule().

63  {
64  static thread_local std::vector<double> s_stack;
65  return s_stack;
66  }
std::ostream & edm::service::operator<< ( std::ostream &  os,
SimpleMemoryCheck::SignificantEvent const &  se 
)

Definition at line 807 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.

808  {
809  os << "[" << se.count << "] "
810  << se.event << " vsize = " << se.vsize
811  << " deltaVsize = " << se.deltaVsize
812  << " rss = " << se.rss << " delta = " << se.deltaRss;
813 
814  if (se.monitorPssAndPrivate) {
815  os <<" private = "<<se.privateSize<<" pss = "<<se.pss;
816  }
817  return os;
818  }
std::ostream & edm::service::operator<< ( std::ostream &  os,
SimpleMemoryCheck::SignificantModule const &  sm 
)

Definition at line 821 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.

822  {
823  if(sm.postEarlyCount > 0) {
824  os << "\nPost Early Events: TotalDeltaVsize: " << sm.totalDeltaVsize
825  << " (avg: " << sm.totalDeltaVsize/sm.postEarlyCount
826  << "; max: " << sm.maxDeltaVsize
827  << " during " << sm.eventMaxDeltaV << ")";
828  }
829  if(sm.totalEarlyVsize > 0) {
830  os << "\n Early Events: TotalDeltaVsize: " << sm.totalEarlyVsize
831  << " (max: " << sm.maxEarlyVsize << ")";
832  }
833 
834  return os;
835  }
static std::string edm::service::summarizeContext ( const std::string &  c)
static

Definition at line 162 of file ELstatistics.cc.

References trackerHits::c, event(), DTTTrigCorrFirst::run, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by edm::service::ELstatistics::log().

163  {
164  if ( c.substr (0,4) != "Run:" ) return c;
165  std::istringstream is (c);
166  std::string runWord;
167  int run;
168  is >> runWord >> run;
169  if (!is) return c;
170  if (runWord != "Run:") return c;
171  std::string eventWord;
172  int event;
173  is >> eventWord >> event;
174  if (!is) return c;
175  if (eventWord != "Event:") return c;
176  std::ostringstream os;
177  os << run << "/" << event;
178  return os.str();
179  }
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past

Variable Documentation

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

Definition at line 93 of file ELdestination.cc.

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

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

Definition at line 91 of file ELdestination.cc.

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

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

Definition at line 92 of file ELdestination.cc.

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

const 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().