-
Notifications
You must be signed in to change notification settings - Fork 4.6k
SimpleMemoryCheck can now sample memory at a set frequency #46081
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
Conversation
|
please test |
|
cms-bot internal usage |
|
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-46081/41870 |
|
A new Pull Request was created by @Dr15Jones for master. It involves the following packages:
@Dr15Jones, @makortel, @smuzaffar can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
| << "'sampleEventNSeconds' and 'moduleSummaryRequested' cannot be used together"; | ||
| } | ||
| iReg.watchPostBeginJob(this, &SimpleMemoryCheck::startSamplingThread); | ||
| iReg.watchPreEndJob(this, &SimpleMemoryCheck::stopSamplingThread); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this need to listen the early termination signals too, or do we call PreEndJob after those?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess with #45434 we try to call EndJob if it is possible in any way (alternative being the job terminating via std::terminate() or similar)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that the EndJob transition should be run after early termination.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree also. That is what it should be doing.
|
-1 Failed Tests: RelVals-INPUT RelVals-INPUT
Expand to see more relval errors ...
Comparison SummarySummary:
|
|
Comparison differences are related to #39803 |
|
|
||
| if (sampleEveryNSeconds_ > 0) { | ||
| if (oncePerEventMode_) { | ||
| throw cms::Exception("BadConfigOptions") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this use
| throw cms::Exception("BadConfigOptions") | |
| throw cms::Exception("Configuration") |
or
| throw cms::Exception("BadConfigOptions") | |
| throw edm::Exception(edm::errors::Configuration) |
?
Also added comments in fillDescriptions
ec059a1 to
14a946f
Compare
|
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-46081/41891 |
|
Pull request #46081 was updated. @Dr15Jones, @cmsbuild, @makortel, @smuzaffar can you please check and sign again. |
|
please test |
|
+1 Size: This PR adds an extra 24KB to repository Comparison SummarySummary:
|
|
+core |
|
This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @rappoccio, @antoniovilela, @sextonkennedy, @mandrenguyen (and backports should be raised in the release meeting by the corresponding L2) |
|
+1 |
PR description:
PR validation:
Code compiles. Made a simple configuration to test the service change and it worked.