#include <Memory.h>
Classes | |
struct | SignificantEvent |
struct | SignificantModule |
Public Member Functions | |
void | postBeginJob () |
void | postEndJob () |
void | postEventProcessing (const Event &, const EventSetup &) |
void | postFork (unsigned int, unsigned int) |
void | postModule (const ModuleDescription &) |
void | postModuleBeginJob (const ModuleDescription &) |
void | postModuleConstruction (const ModuleDescription &) |
void | postSource () |
void | postSourceConstruction (const ModuleDescription &) |
void | preEventProcessing (const edm::EventID &, const edm::Timestamp &) |
void | preModule (const ModuleDescription &) |
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 |
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) |
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 |
|
private |
edm::service::SimpleMemoryCheck::SimpleMemoryCheck | ( | const ParameterSet & | iPS, |
ActivityRegistry & | iReg | ||
) |
Definition at line 113 of file Memory.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(), postEventProcessing(), postFork(), postModule(), postModuleBeginJob(), postModuleConstruction(), postSource(), postSourceConstruction(), preEventProcessing(), 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::watchPostForkReacquireResources(), edm::ActivityRegistry::watchPostModule(), edm::ActivityRegistry::watchPostModuleBeginJob(), edm::ActivityRegistry::watchPostModuleConstruction(), edm::ActivityRegistry::watchPostProcessEvent(), edm::ActivityRegistry::watchPostSource(), edm::ActivityRegistry::watchPostSourceConstruction(), edm::ActivityRegistry::watchPreModule(), edm::ActivityRegistry::watchPreProcessEvent(), and edm::ActivityRegistry::watchPreSourceConstruction().
edm::service::SimpleMemoryCheck::~SimpleMemoryCheck | ( | ) |
|
private |
Definition at line 614 of file Memory.cc.
References count_, current_, jobReportOutputOnly_, max_, num_to_skip_, oncePerEventMode_, edm::service::ProcInfo::rss, showMallocInfo_, and edm::service::ProcInfo::vsize.
Referenced by postEventProcessing(), and updateAndPrint().
|
private |
Definition at line 109 of file Memory.cc.
Referenced by postEndJob().
|
private |
Referenced by postEndJob().
|
private |
Definition at line 660 of file Memory.cc.
References edm::service::SimpleMemoryCheck::SignificantEvent::count, edm::service::d2str(), edm::service::SimpleMemoryCheck::SignificantEvent::deltaVsize, edm::EventID::event(), edm::service::SimpleMemoryCheck::SignificantEvent::event, edm::service::i2str(), monitorPssAndPrivate_, edm::service::SimpleMemoryCheck::SignificantEvent::privateSize, edm::service::SimpleMemoryCheck::SignificantEvent::pss, edm::service::SimpleMemoryCheck::SignificantEvent::rss, edm::EventID::run(), and edm::service::SimpleMemoryCheck::SignificantEvent::vsize.
|
private |
Definition at line 71 of file Memory.cc.
References edm::service::ProcInfoFetcher::fetch(), and piFetcher_.
Referenced by update().
|
private |
Definition at line 75 of file Memory.cc.
References edm::service::smapsInfo::private_, edm::service::smapsInfo::pss_, SiPixelLorentzAngle_cfi::read, run_regression::ret, smapsFile_, smapsLineBuffer_, smapsLineBufferLen_, and relativeConstraints::value.
Referenced by postEventProcessing().
|
static |
Definition at line 211 of file Memory.cc.
References edm::ConfigurationDescriptions::add(), and edm::ParameterSetDescription::addUntracked().
|
private |
Referenced by postEndJob().
|
private |
Definition at line 227 of file Memory.cc.
References edm::errors::Configuration, edm::hlt::Exception, monitorPssAndPrivate_, and smapsFile_.
Referenced by postFork(), and SimpleMemoryCheck().
|
inlineprivate |
void edm::service::SimpleMemoryCheck::postBeginJob | ( | ) |
Definition at line 239 of file Memory.cc.
References current_, growthRateRss_, growthRateVsize_, edm::service::ProcInfo::rss, and edm::service::ProcInfo::vsize.
Referenced by SimpleMemoryCheck().
void edm::service::SimpleMemoryCheck::postEndJob | ( | ) |
Definition at line 265 of file Memory.cc.
References averageGrowthRate(), python.rootplot.argparse::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_, diffTwoXMLs::label, m, mallOutput(), edm::service::SimpleMemoryCheck::SignificantModule::maxDeltaVsize, edm::service::SimpleMemoryCheck::SignificantModule::maxEarlyVsize, modules_, moduleSummaryRequested_, NULL, edm::service::SimpleMemoryCheck::SignificantModule::postEarlyCount, edm::service::ProcInfo::rss, edm::service::SimpleMemoryCheck::SignificantEvent::rss, edm::service::SimpleMemoryCheck::SignificantModule::totalDeltaVsize, edm::service::SimpleMemoryCheck::SignificantModule::totalEarlyVsize, relativeConstraints::value, edm::service::ProcInfo::vsize, and edm::service::SimpleMemoryCheck::SignificantEvent::vsize.
Referenced by SimpleMemoryCheck().
void edm::service::SimpleMemoryCheck::postEventProcessing | ( | const Event & | e, |
const EventSetup & | |||
) |
Definition at line 487 of file Memory.cc.
References andPrint(), count_, currentSmaps_, fetchSmaps(), edm::EventBase::id(), monitorPssAndPrivate_, oncePerEventMode_, update(), updateEventStats(), and updateMax().
Referenced by SimpleMemoryCheck().
void edm::service::SimpleMemoryCheck::postFork | ( | unsigned | int, |
unsigned | int | ||
) |
Definition at line 519 of file Memory.cc.
References openFiles(), and smapsFile_.
Referenced by SimpleMemoryCheck().
void edm::service::SimpleMemoryCheck::postModule | ( | const ModuleDescription & | md | ) |
Definition at line 506 of file Memory.cc.
References current_, diffTwoXMLs::label, moduleEntryVsize_, edm::ModuleDescription::moduleLabel(), edm::ModuleDescription::moduleName(), modules_, moduleSummaryRequested_, oncePerEventMode_, update(), updateAndPrint(), updateModuleMemoryStats(), and edm::service::ProcInfo::vsize.
Referenced by SimpleMemoryCheck().
void edm::service::SimpleMemoryCheck::postModuleBeginJob | ( | const ModuleDescription & | md | ) |
Definition at line 261 of file Memory.cc.
References edm::ModuleDescription::moduleLabel(), edm::ModuleDescription::moduleName(), and updateAndPrint().
Referenced by SimpleMemoryCheck().
void edm::service::SimpleMemoryCheck::postModuleConstruction | ( | const ModuleDescription & | md | ) |
Definition at line 257 of file Memory.cc.
References edm::ModuleDescription::moduleLabel(), edm::ModuleDescription::moduleName(), and updateAndPrint().
Referenced by SimpleMemoryCheck().
void edm::service::SimpleMemoryCheck::postSource | ( | ) |
Definition at line 253 of file Memory.cc.
References updateAndPrint().
Referenced by SimpleMemoryCheck().
void edm::service::SimpleMemoryCheck::postSourceConstruction | ( | const ModuleDescription & | md | ) |
Definition at line 249 of file Memory.cc.
References edm::ModuleDescription::moduleLabel(), edm::ModuleDescription::moduleName(), and updateAndPrint().
Referenced by SimpleMemoryCheck().
void edm::service::SimpleMemoryCheck::preEventProcessing | ( | const edm::EventID & | iID, |
const edm::Timestamp & | |||
) |
Definition at line 483 of file Memory.cc.
References currentEventID_.
Referenced by SimpleMemoryCheck().
void edm::service::SimpleMemoryCheck::preModule | ( | const ModuleDescription & | ) |
Definition at line 501 of file Memory.cc.
References current_, moduleEntryVsize_, update(), and edm::service::ProcInfo::vsize.
Referenced by SimpleMemoryCheck().
void edm::service::SimpleMemoryCheck::preSourceConstruction | ( | const ModuleDescription & | md | ) |
Definition at line 244 of file Memory.cc.
References edm::ModuleDescription::moduleLabel(), edm::ModuleDescription::moduleName(), and updateAndPrint().
Referenced by SimpleMemoryCheck().
|
private |
Definition at line 528 of file Memory.cc.
References current_, fetch(), previous_, and std::swap().
Referenced by progressbar.ProgressBar::__next__(), relval_steps.Matrix::__setitem__(), relval_steps.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(), relval_steps.Steps::overwrite(), postEventProcessing(), 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 651 of file Memory.cc.
References andPrint(), update(), and updateMax().
Referenced by postModule(), postModuleBeginJob(), postModuleConstruction(), postSource(), postSourceConstruction(), and preSourceConstruction().
|
private |
Definition at line 541 of file Memory.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::ProcInfo::rss, evf::utils::rss, edm::service::SimpleMemoryCheck::SignificantEvent::rss, edm::service::SimpleMemoryCheck::SignificantEvent::set(), SignificantEvent, edm::service::ProcInfo::vsize, evf::utils::vsize, and edm::service::SimpleMemoryCheck::SignificantEvent::vsize.
Referenced by postEventProcessing().
|
private |
Definition at line 533 of file Memory.cc.
References count_, current_, max_, num_to_skip_, and oncePerEventMode_.
Referenced by postEventProcessing(), and updateAndPrint().
|
private |
Definition at line 717 of file Memory.cc.
References count_, currentEventID_, 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 |
|
friend |
|
friend |
Definition at line 150 of file Memory.h.
Referenced by updateEventStats().
|
friend |
|
private |
Definition at line 110 of file Memory.h.
Referenced by andPrint(), postEndJob(), postEventProcessing(), edm::service::SimpleMemoryCheck::SignificantEvent::set(), updateEventStats(), updateMax(), and updateModuleMemoryStats().
|
private |
Definition at line 97 of file Memory.h.
Referenced by andPrint(), postBeginJob(), postEndJob(), postModule(), preModule(), edm::service::SimpleMemoryCheck::SignificantEvent::set(), update(), updateEventStats(), and updateMax().
|
private |
Definition at line 229 of file Memory.h.
Referenced by preEventProcessing(), and updateModuleMemoryStats().
|
private |
Definition at line 100 of file Memory.h.
Referenced by postEventProcessing(), and edm::service::SimpleMemoryCheck::SignificantEvent::set().
|
private |
Definition at line 193 of file Memory.h.
Referenced by postEndJob(), and updateEventStats().
|
private |
Definition at line 194 of file Memory.h.
Referenced by postEndJob(), and updateEventStats().
|
private |
Definition at line 195 of file Memory.h.
Referenced by postEndJob(), and updateEventStats().
|
private |
Definition at line 170 of file Memory.h.
Referenced by postEndJob(), and updateEventStats().
|
private |
Definition at line 171 of file Memory.h.
Referenced by postEndJob(), and updateEventStats().
|
private |
Definition at line 169 of file Memory.h.
Referenced by postEndJob(), and updateEventStats().
|
private |
Definition at line 172 of file Memory.h.
Referenced by postEndJob(), and updateEventStats().
|
private |
Definition at line 173 of file Memory.h.
Referenced by postEndJob(), and updateEventStats().
|
private |
Definition at line 190 of file Memory.h.
Referenced by postEndJob(), and updateEventStats().
|
private |
Definition at line 191 of file Memory.h.
Referenced by postEndJob(), and updateEventStats().
|
private |
Definition at line 192 of file Memory.h.
Referenced by postEndJob(), and updateEventStats().
|
private |
Definition at line 174 of file Memory.h.
Referenced by postEndJob(), and updateEventStats().
|
private |
Definition at line 175 of file Memory.h.
Referenced by postEndJob(), and updateEventStats().
|
private |
Definition at line 176 of file Memory.h.
Referenced by postEndJob(), and updateEventStats().
|
private |
Definition at line 120 of file Memory.h.
Referenced by postBeginJob(), and postEndJob().
|
private |
Definition at line 119 of file Memory.h.
Referenced by postBeginJob(), and postEndJob().
|
private |
Definition at line 108 of file Memory.h.
Referenced by andPrint(), and postEndJob().
|
private |
Definition at line 96 of file Memory.h.
Referenced by andPrint(), and updateMax().
|
private |
Definition at line 228 of file Memory.h.
Referenced by postModule(), and preModule().
|
private |
Definition at line 227 of file Memory.h.
Referenced by postEndJob(), and postModule().
|
private |
Definition at line 225 of file Memory.h.
Referenced by postEndJob(), postModule(), and SimpleMemoryCheck().
|
private |
Definition at line 109 of file Memory.h.
Referenced by eventStatOutput(), openFiles(), postEventProcessing(), and edm::service::SimpleMemoryCheck::SignificantEvent::set().
|
private |
Definition at line 104 of file Memory.h.
Referenced by andPrint(), updateEventStats(), updateMax(), and updateModuleMemoryStats().
|
private |
Definition at line 107 of file Memory.h.
Referenced by andPrint(), postEventProcessing(), postModule(), SimpleMemoryCheck(), and updateMax().
|
private |
Definition at line 103 of file Memory.h.
Referenced by pageSize().
|
private |
|
private |
|
private |
Definition at line 106 of file Memory.h.
Referenced by andPrint().
|
private |
Definition at line 113 of file Memory.h.
Referenced by fetchSmaps(), openFiles(), postFork(), and ~SimpleMemoryCheck().
|
private |
Definition at line 114 of file Memory.h.
Referenced by fetchSmaps(), and ~SimpleMemoryCheck().
|
private |
Definition at line 115 of file Memory.h.
Referenced by fetchSmaps().