Classes | |
struct | SignificantEvent |
struct | SignificantModule |
Public Member Functions | |
void | postBeginJob () |
void | postEndJob () |
void | postEvent (StreamContext const &) |
void | postModule (StreamContext const &, ModuleCallingContext const &) |
void | postModuleBeginJob (const ModuleDescription &) |
void | postModuleConstruction (const ModuleDescription &) |
void | postSourceConstruction (const ModuleDescription &) |
void | postSourceEvent (StreamID) |
void | preModule (StreamContext const &, ModuleCallingContext const &) |
void | preSourceConstruction (const ModuleDescription &) |
SimpleMemoryCheck (const ParameterSet &, ActivityRegistry &) | |
~SimpleMemoryCheck () | |
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Private Types | |
typedef std::map< std::string, SignificantModule > | SignificantModulesMap |
Private Member Functions | |
void | andPrint (const std::string &type, const std::string &mdlabel, const std::string &mdname) const |
double | averageGrowthRate (double current, double past, int count) |
std::string | eventStatOutput (std::string title, SignificantEvent const &e) const |
void | eventStatOutput (std::string title, SignificantEvent const &e, std::map< std::string, std::string > &m) const |
ProcInfo | fetch () |
smapsInfo | fetchSmaps () |
std::string | mallOutput (std::string title, size_t const &n) const |
void | openFiles () |
double | pageSize () const |
char const * | smapsLineBuffer () const |
char *& | smapsLineBuffer () |
void | update () |
void | updateAndPrint (const std::string &type, const std::string &mdlabel, const std::string &mdname) |
void | updateEventStats (edm::EventID const &e) |
void | updateMax () |
void | updateModuleMemoryStats (SignificantModule &m, double dv, edm::EventID const &) |
Friends | |
std::ostream & | operator<< (std::ostream &os, SimpleMemoryCheck::SignificantEvent const &se) |
std::ostream & | operator<< (std::ostream &os, SimpleMemoryCheck::SignificantModule const &se) |
struct | SignificantEvent |
struct | SignificantModule |
Definition at line 77 of file SimpleMemoryCheck.cc.
|
private |
Definition at line 247 of file SimpleMemoryCheck.cc.
edm::service::SimpleMemoryCheck::SimpleMemoryCheck | ( | const ParameterSet & | , |
ActivityRegistry & | |||
) |
Definition at line 329 of file SimpleMemoryCheck.cc.
References edm::MallocOptionSetter::adjustMallocParams(), edm::MallocOptionSetter::error_message(), edm::MallocOptionSetter::get(), edm::getGlobalOptionSetter(), edm::ParameterSet::getUntrackedParameter(), edm::MallocOptionSetter::hasErrors(), moduleSummaryRequested_, oncePerEventMode_, openFiles(), postBeginJob(), postEndJob(), postEvent(), postModule(), postModuleBeginJob(), postModuleConstruction(), postSourceConstruction(), postSourceEvent(), preModule(), preSourceConstruction(), edm::MallocOptionSetter::set_mmap_max(), edm::MallocOptionSetter::set_mmap_thr(), edm::MallocOptionSetter::set_top_pad(), edm::MallocOptionSetter::set_trim_thr(), edm::ActivityRegistry::watchPostBeginJob(), edm::ActivityRegistry::watchPostEndJob(), edm::ActivityRegistry::watchPostEvent(), edm::ActivityRegistry::watchPostModuleBeginJob(), edm::ActivityRegistry::watchPostModuleConstruction(), edm::ActivityRegistry::watchPostModuleEvent(), edm::ActivityRegistry::watchPostSourceConstruction(), edm::ActivityRegistry::watchPostSourceEvent(), edm::ActivityRegistry::watchPreModuleEvent(), and edm::ActivityRegistry::watchPreSourceConstruction().
edm::service::SimpleMemoryCheck::~SimpleMemoryCheck | ( | ) |
Definition at line 416 of file SimpleMemoryCheck.cc.
References smapsFile_, and smapsLineBuffer_.
|
private |
Definition at line 861 of file SimpleMemoryCheck.cc.
References count_, current_, jobReportOutputOnly_, max_, num_to_skip_, oncePerEventMode_, edm::service::ProcInfo::rss, showMallocInfo_, and edm::service::ProcInfo::vsize.
Referenced by postEvent(), and updateAndPrint().
|
private |
|
private |
Referenced by eventStatOutput(), and postEndJob().
|
private |
Definition at line 902 of file SimpleMemoryCheck.cc.
References edm::service::SimpleMemoryCheck::SignificantEvent::count, edm::service::d2str(), edm::service::SimpleMemoryCheck::SignificantEvent::deltaVsize, MillePedeFileConverter_cfg::e, edm::EventID::event(), edm::service::SimpleMemoryCheck::SignificantEvent::event, eventStatOutput(), edm::service::i2str(), mallOutput(), monitorPssAndPrivate_, gen::n, edm::service::SimpleMemoryCheck::SignificantEvent::privateSize, edm::service::SimpleMemoryCheck::SignificantEvent::pss, edm::service::SimpleMemoryCheck::SignificantEvent::rss, edm::EventID::run(), AlCaHLTBitMon_QueryRunRegistry::string, runGCPTkAlMap::title, and edm::service::SimpleMemoryCheck::SignificantEvent::vsize.
|
private |
Definition at line 289 of file SimpleMemoryCheck.cc.
Referenced by update().
|
private |
Definition at line 291 of file SimpleMemoryCheck.cc.
References edm::service::smapsInfo::private_, edm::service::smapsInfo::pss_, and relativeConstraints::value.
Referenced by postEvent().
|
static |
Definition at line 428 of file SimpleMemoryCheck.cc.
References edm::ConfigurationDescriptions::add(), and edm::ParameterSetDescription::addUntracked().
|
private |
Referenced by eventStatOutput(), and postEndJob().
|
private |
Definition at line 444 of file SimpleMemoryCheck.cc.
References edm::errors::Configuration, Exception, monitorPssAndPrivate_, and smapsFile_.
Referenced by SimpleMemoryCheck().
|
inlineprivate |
Definition at line 103 of file SimpleMemoryCheck.cc.
References KineDebug3::count(), AlCaHLTBitMon_QueryRunRegistry::string, and update.
void edm::service::SimpleMemoryCheck::postBeginJob | ( | ) |
Definition at line 456 of file SimpleMemoryCheck.cc.
References current_, growthRateRss_, and growthRateVsize_.
Referenced by SimpleMemoryCheck().
void edm::service::SimpleMemoryCheck::postEndJob | ( | ) |
Definition at line 506 of file SimpleMemoryCheck.cc.
References averageGrowthRate(), taus_updatedMVAIds_cff::category, count_, current_, edm::service::d2str(), edm::service::SimpleMemoryCheck::SignificantEvent::deltaRss, eventDeltaRssT1_, eventDeltaRssT2_, eventDeltaRssT3_, eventL1_, eventL2_, eventM_, edm::service::SimpleMemoryCheck::SignificantModule::eventMaxDeltaV, eventR1_, eventR2_, eventRssT1_, eventRssT2_, eventRssT3_, eventStatOutput(), eventT1_, eventT2_, eventT3_, growthRateRss_, growthRateVsize_, edm::service::i2str(), jobReportOutputOnly_, label, funct::m, mallOutput(), edm::service::SimpleMemoryCheck::SignificantModule::maxDeltaVsize, edm::service::SimpleMemoryCheck::SignificantModule::maxEarlyVsize, modules_, moduleSummaryRequested_, edm::service::SimpleMemoryCheck::SignificantModule::postEarlyCount, edm::service::SimpleMemoryCheck::SignificantEvent::rss, AlCaHLTBitMon_QueryRunRegistry::string, edm::service::SimpleMemoryCheck::SignificantModule::totalDeltaVsize, edm::service::SimpleMemoryCheck::SignificantModule::totalEarlyVsize, relativeConstraints::value, and edm::service::SimpleMemoryCheck::SignificantEvent::vsize.
Referenced by SimpleMemoryCheck().
void edm::service::SimpleMemoryCheck::postEvent | ( | StreamContext const & | iContext | ) |
Definition at line 703 of file SimpleMemoryCheck.cc.
References andPrint(), count_, currentSmaps_, edm::StreamContext::eventID(), fetchSmaps(), measurementUnderway_, monitorPssAndPrivate_, oncePerEventMode_, update(), updateEventStats(), and updateMax().
Referenced by SimpleMemoryCheck().
void edm::service::SimpleMemoryCheck::postModule | ( | StreamContext const & | iStreamContext, |
ModuleCallingContext const & | iModuleContext | ||
) |
Definition at line 738 of file SimpleMemoryCheck.cc.
References current_, edm::StreamContext::eventID(), edm::ModuleDescription::id(), label, measurementUnderway_, edm::ModuleCallingContext::moduleDescription(), moduleEntryVsize_, moduleID_, edm::ModuleDescription::moduleLabel(), moduleMeasurementUnderway_, modules_, moduleStreamID_, moduleSummaryRequested_, oncePerEventMode_, edm::StreamContext::streamID(), AlCaHLTBitMon_QueryRunRegistry::string, update(), updateAndPrint(), updateModuleMemoryStats(), and edm::StreamID::value().
Referenced by SimpleMemoryCheck().
void edm::service::SimpleMemoryCheck::postModuleBeginJob | ( | const ModuleDescription & | ) |
Definition at line 497 of file SimpleMemoryCheck.cc.
References measurementUnderway_, edm::ModuleDescription::moduleLabel(), edm::ModuleDescription::moduleName(), and updateAndPrint().
Referenced by SimpleMemoryCheck().
void edm::service::SimpleMemoryCheck::postModuleConstruction | ( | const ModuleDescription & | ) |
Definition at line 488 of file SimpleMemoryCheck.cc.
References measurementUnderway_, edm::ModuleDescription::moduleLabel(), edm::ModuleDescription::moduleName(), and updateAndPrint().
Referenced by SimpleMemoryCheck().
void edm::service::SimpleMemoryCheck::postSourceConstruction | ( | const ModuleDescription & | ) |
Definition at line 470 of file SimpleMemoryCheck.cc.
References measurementUnderway_, edm::ModuleDescription::moduleLabel(), edm::ModuleDescription::moduleName(), and updateAndPrint().
Referenced by SimpleMemoryCheck().
void edm::service::SimpleMemoryCheck::postSourceEvent | ( | StreamID | sid | ) |
Definition at line 479 of file SimpleMemoryCheck.cc.
References measurementUnderway_, and updateAndPrint().
Referenced by SimpleMemoryCheck().
void edm::service::SimpleMemoryCheck::preModule | ( | StreamContext const & | iStreamContext, |
ModuleCallingContext const & | iModuleContext | ||
) |
Definition at line 722 of file SimpleMemoryCheck.cc.
References current_, edm::ModuleDescription::id(), measurementUnderway_, edm::ModuleCallingContext::moduleDescription(), moduleEntryVsize_, moduleID_, moduleMeasurementUnderway_, moduleStreamID_, edm::StreamContext::streamID(), update(), and edm::StreamID::value().
Referenced by SimpleMemoryCheck().
void edm::service::SimpleMemoryCheck::preSourceConstruction | ( | const ModuleDescription & | ) |
Definition at line 461 of file SimpleMemoryCheck.cc.
References measurementUnderway_, edm::ModuleDescription::moduleLabel(), edm::ModuleDescription::moduleName(), and updateAndPrint().
Referenced by SimpleMemoryCheck().
|
inlineprivate |
Definition at line 111 of file SimpleMemoryCheck.cc.
References edm::get_underlying_safe().
|
inlineprivate |
Definition at line 112 of file SimpleMemoryCheck.cc.
References edm::get_underlying_safe().
|
private |
Definition at line 774 of file SimpleMemoryCheck.cc.
References current_, fetch(), previous_, and std::swap().
Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), Vispa.Gui.VispaWidget.VispaWidget::autosize(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Views.LineDecayView.LineDecayContainer::deselectAllObjects(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::deselectAllWidgets(), Vispa.Gui.VispaWidget.VispaWidget::enableAutosizing(), progressbar.ProgressBar::finish(), Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseMoveEvent(), Vispa.Gui.MenuWidget.MenuWidget::mouseMoveEvent(), Vispa.Views.LineDecayView.LineDecayContainer::mouseMoveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseReleaseEvent(), Vispa.Views.LineDecayView.LineDecayContainer::objectMoved(), MatrixUtil.Steps::overwrite(), postEvent(), postModule(), preModule(), Vispa.Views.LineDecayView.LineDecayContainer::removeObject(), Vispa.Gui.ConnectableWidget.ConnectableWidget::removePorts(), Vispa.Gui.FindDialog.FindDialog::reset(), Vispa.Gui.PortConnection.PointToPointConnection::select(), Vispa.Gui.VispaWidget.VispaWidget::select(), Vispa.Views.LineDecayView.LineDecayContainer::select(), Vispa.Gui.VispaWidget.VispaWidget::setText(), Vispa.Gui.VispaWidget.VispaWidget::setTitle(), Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom(), Vispa.Views.LineDecayView.LineDecayContainer::setZoom(), updateAndPrint(), and Vispa.Gui.PortConnection.PointToPointConnection::updateConnection().
|
private |
Definition at line 893 of file SimpleMemoryCheck.cc.
References andPrint(), update(), and updateMax().
Referenced by postModule(), postModuleBeginJob(), postModuleConstruction(), postSourceConstruction(), postSourceEvent(), and preSourceConstruction().
|
private |
Definition at line 787 of file SimpleMemoryCheck.cc.
References count_, current_, edm::service::SimpleMemoryCheck::SignificantEvent::deltaRss, edm::service::SimpleMemoryCheck::SignificantEvent::deltaVsize, eventDeltaRssT1_, eventDeltaRssT2_, eventDeltaRssT3_, eventL1_, eventL2_, eventM_, eventR1_, eventR2_, eventRssT1_, eventRssT2_, eventRssT3_, eventT1_, eventT2_, eventT3_, num_to_skip_, edm::service::SimpleMemoryCheck::SignificantEvent::rss, edm::service::SimpleMemoryCheck::SignificantEvent::set(), SignificantEvent, and edm::service::SimpleMemoryCheck::SignificantEvent::vsize.
Referenced by postEvent().
|
private |
Definition at line 779 of file SimpleMemoryCheck.cc.
References count_, current_, max_, num_to_skip_, and oncePerEventMode_.
Referenced by postEvent(), and updateAndPrint().
|
private |
Definition at line 970 of file SimpleMemoryCheck.cc.
References count_, edm::service::SimpleMemoryCheck::SignificantModule::eventMaxDeltaV, edm::service::SimpleMemoryCheck::SignificantModule::maxDeltaVsize, edm::service::SimpleMemoryCheck::SignificantModule::maxEarlyVsize, num_to_skip_, edm::service::SimpleMemoryCheck::SignificantModule::postEarlyCount, edm::service::SimpleMemoryCheck::SignificantModule::totalDeltaVsize, and edm::service::SimpleMemoryCheck::SignificantModule::totalEarlyVsize.
Referenced by postModule().
|
friend |
Definition at line 987 of file SimpleMemoryCheck.cc.
|
friend |
Definition at line 997 of file SimpleMemoryCheck.cc.
|
friend |
Definition at line 176 of file SimpleMemoryCheck.cc.
Referenced by updateEventStats().
|
friend |
Definition at line 244 of file SimpleMemoryCheck.cc.
|
private |
Definition at line 114 of file SimpleMemoryCheck.cc.
|
private |
Definition at line 115 of file SimpleMemoryCheck.cc.
|
private |
Definition at line 130 of file SimpleMemoryCheck.cc.
Referenced by andPrint(), postEndJob(), postEvent(), updateEventStats(), updateMax(), and updateModuleMemoryStats().
|
private |
Definition at line 117 of file SimpleMemoryCheck.cc.
Referenced by andPrint(), postBeginJob(), postEndJob(), postModule(), preModule(), update(), updateEventStats(), and updateMax().
|
private |
Definition at line 120 of file SimpleMemoryCheck.cc.
Referenced by postEvent().
|
private |
Definition at line 218 of file SimpleMemoryCheck.cc.
Referenced by postEndJob(), and updateEventStats().
|
private |
Definition at line 219 of file SimpleMemoryCheck.cc.
Referenced by postEndJob(), and updateEventStats().
|
private |
Definition at line 220 of file SimpleMemoryCheck.cc.
Referenced by postEndJob(), and updateEventStats().
|
private |
Definition at line 195 of file SimpleMemoryCheck.cc.
Referenced by postEndJob(), and updateEventStats().
|
private |
Definition at line 196 of file SimpleMemoryCheck.cc.
Referenced by postEndJob(), and updateEventStats().
|
private |
Definition at line 194 of file SimpleMemoryCheck.cc.
Referenced by postEndJob(), and updateEventStats().
|
private |
Definition at line 197 of file SimpleMemoryCheck.cc.
Referenced by postEndJob(), and updateEventStats().
|
private |
Definition at line 198 of file SimpleMemoryCheck.cc.
Referenced by postEndJob(), and updateEventStats().
|
private |
Definition at line 215 of file SimpleMemoryCheck.cc.
Referenced by postEndJob(), and updateEventStats().
|
private |
Definition at line 216 of file SimpleMemoryCheck.cc.
Referenced by postEndJob(), and updateEventStats().
|
private |
Definition at line 217 of file SimpleMemoryCheck.cc.
Referenced by postEndJob(), and updateEventStats().
|
private |
Definition at line 199 of file SimpleMemoryCheck.cc.
Referenced by postEndJob(), and updateEventStats().
|
private |
Definition at line 200 of file SimpleMemoryCheck.cc.
Referenced by postEndJob(), and updateEventStats().
|
private |
Definition at line 201 of file SimpleMemoryCheck.cc.
Referenced by postEndJob(), and updateEventStats().
|
private |
Definition at line 139 of file SimpleMemoryCheck.cc.
Referenced by postBeginJob(), and postEndJob().
|
private |
Definition at line 138 of file SimpleMemoryCheck.cc.
Referenced by postBeginJob(), and postEndJob().
|
private |
Definition at line 128 of file SimpleMemoryCheck.cc.
Referenced by andPrint(), and postEndJob().
|
private |
Definition at line 116 of file SimpleMemoryCheck.cc.
Referenced by andPrint(), and updateMax().
|
private |
Definition at line 253 of file SimpleMemoryCheck.cc.
Referenced by postEvent(), postModule(), postModuleBeginJob(), postModuleConstruction(), postSourceConstruction(), postSourceEvent(), preModule(), and preSourceConstruction().
|
private |
Definition at line 249 of file SimpleMemoryCheck.cc.
Referenced by postModule(), and preModule().
|
private |
Definition at line 256 of file SimpleMemoryCheck.cc.
Referenced by postModule(), and preModule().
|
private |
Definition at line 254 of file SimpleMemoryCheck.cc.
Referenced by postModule(), and preModule().
|
private |
Definition at line 248 of file SimpleMemoryCheck.cc.
Referenced by postEndJob(), and postModule().
|
private |
Definition at line 255 of file SimpleMemoryCheck.cc.
Referenced by postModule(), and preModule().
|
private |
Definition at line 246 of file SimpleMemoryCheck.cc.
Referenced by postEndJob(), postModule(), and SimpleMemoryCheck().
|
private |
Definition at line 129 of file SimpleMemoryCheck.cc.
Referenced by eventStatOutput(), openFiles(), and postEvent().
|
private |
Definition at line 124 of file SimpleMemoryCheck.cc.
Referenced by andPrint(), updateEventStats(), updateMax(), and updateModuleMemoryStats().
|
private |
Definition at line 127 of file SimpleMemoryCheck.cc.
Referenced by andPrint(), postEvent(), postModule(), SimpleMemoryCheck(), and updateMax().
|
private |
Definition at line 123 of file SimpleMemoryCheck.cc.
|
private |
Definition at line 122 of file SimpleMemoryCheck.cc.
|
private |
Definition at line 118 of file SimpleMemoryCheck.cc.
Referenced by update().
|
private |
Definition at line 126 of file SimpleMemoryCheck.cc.
Referenced by andPrint().
|
private |
Definition at line 133 of file SimpleMemoryCheck.cc.
Referenced by openFiles(), and ~SimpleMemoryCheck().
|
private |
Definition at line 134 of file SimpleMemoryCheck.cc.
Referenced by ~SimpleMemoryCheck().
|
private |
Definition at line 135 of file SimpleMemoryCheck.cc.