Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more profile dump points to IgProfService #39073

Merged
merged 1 commit into from
Aug 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions IgTools/IgProf/plugins/IgProfService.cc
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,13 @@ IgProfService::IgProfService(ParameterSet const &ps, ActivityRegistry &iRegistry
atPostModuleEvent_ = ps.getUntrackedParameter<std::string>("reportToFileAtPostModuleEvent", atPostModuleEvent_);

atPostEndLumi_ = ps.getUntrackedParameter<std::string>("reportToFileAtPostEndLumi", atPostEndLumi_);
atPreEndRun_ = ps.getUntrackedParameter<std::string>("reportToFileAtPreEndRun", atPreEndRun_);
atPostEndRun_ = ps.getUntrackedParameter<std::string>("reportToFileAtPostEndRun", atPostEndRun_);
atPreEndProcessBlock_ =
ps.getUntrackedParameter<std::string>("reportToFileAtPreEndProcessBlock", atPreEndProcessBlock_);
atPostEndProcessBlock_ =
ps.getUntrackedParameter<std::string>("reportToFileAtPostEndProcessBlock", atPostEndProcessBlock_);
atPreEndJob_ = ps.getUntrackedParameter<std::string>("reportToFileAtPreEndJob", atPreEndJob_);
atPostEndJob_ = ps.getUntrackedParameter<std::string>("reportToFileAtPostEndJob", atPostEndJob_);

atPostOpenFile_ = ps.getUntrackedParameter<std::string>("reportToFileAtPostOpenFile", atPostOpenFile_);
Expand All @@ -86,7 +92,11 @@ IgProfService::IgProfService(ParameterSet const &ps, ActivityRegistry &iRegistry
}

iRegistry.watchPostGlobalEndLumi(this, &IgProfService::postEndLumi);
iRegistry.watchPreGlobalEndRun(this, &IgProfService::preEndRun);
iRegistry.watchPostGlobalEndRun(this, &IgProfService::postEndRun);
iRegistry.watchPreEndProcessBlock(this, &IgProfService::preEndProcessBlock);
iRegistry.watchPostEndProcessBlock(this, &IgProfService::postEndProcessBlock);
iRegistry.watchPreEndJob(this, &IgProfService::preEndJob);
iRegistry.watchPostEndJob(this, &IgProfService::postEndJob);

iRegistry.watchPostOpenFile(this, &IgProfService::postOpenFile);
Expand Down Expand Up @@ -147,11 +157,22 @@ void IgProfService::postEndLumi(GlobalContext const &gc) {
makeDump(atPostEndLumi_);
}

void IgProfService::preEndRun(GlobalContext const &gc) {
nrun_ = gc.luminosityBlockID().run();
makeDump(atPreEndRun_);
}

void IgProfService::postEndRun(GlobalContext const &gc) {
nrun_ = gc.luminosityBlockID().run();
makeDump(atPostEndRun_);
}

void IgProfService::preEndProcessBlock(GlobalContext const &gc) { makeDump(atPreEndProcessBlock_); }

void IgProfService::postEndProcessBlock(GlobalContext const &gc) { makeDump(atPostEndProcessBlock_); }

void IgProfService::preEndJob() { makeDump(atPreEndJob_); }

void IgProfService::postEndJob() { makeDump(atPostEndJob_); }

void IgProfService::postOpenFile(std::string const &) {
Expand Down
9 changes: 9 additions & 0 deletions IgTools/IgProf/plugins/IgProfService.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,13 @@ namespace edm {

void postEndLumi(GlobalContext const &gc);

void preEndRun(GlobalContext const &gc);
void postEndRun(GlobalContext const &gc);

void preEndProcessBlock(GlobalContext const &gc);
void postEndProcessBlock(GlobalContext const &gc);

void preEndJob();
void postEndJob();

void postOpenFile(std::string const &);
Expand Down Expand Up @@ -64,7 +69,11 @@ namespace edm {
std::string atPostModuleEvent_;

std::string atPostEndLumi_;
std::string atPreEndRun_;
std::string atPostEndRun_;
std::string atPreEndProcessBlock_;
std::string atPostEndProcessBlock_;
std::string atPreEndJob_;
std::string atPostEndJob_;

std::string atPostOpenFile_;
Expand Down