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
More Memory Logging #15476
More Memory Logging #15476
Conversation
Job Precheck on f68f728 wanted to post the following: Your code requires style changes. A patch was auto generated and copied here
Alternatively, with your repository up to date and in the top level of your repository:
|
Co-authored-by: Logan Harbour <loganhharbour@gmail.com>
This looks pretty nice. If we can have the similar thing for
so that we can add PerfGraph and TimedPrint entries easily for all items? |
@YaqiWang InitialSetup is already well represented within the |
Sweet |
The list is not complete though and we can potentially miss something in a complicated model. |
My way is more forgiving, users can still see something even missing items in-between the first and last message, plus the pattern created in |
@friedmud I'v noticed that when adding print-outs in my PR. But it is not complete, which is something I worried about. If something goes wrong, we have to spend hours to figure out where and why. One example I experience in the past is that one setup has lots of materials and the sorting algorithm for materials in MOOSE is not optimized and really slow. @permcody and @rwcarlsen were involved that conversation and helped fixed the problem. We could potentially have similar issues which will waste lots of our resources to detect. With my print-out, we can simply turn on the command-line parameter and locate the hot spot really quickly. So now I am thinking, you guys should really merge my PR. It really does not hurt. We can keep improving TimedPrint and PerfGraph of course and I like them. Note that |
@YaqiWang - if the existing time prints and perfgraph entries are missing some details you need, then we'll just add in new timed prints and perfgraph sections to cover what you need. That will be much nicer than having the disparate logging. |
How do I know something is missing if I do not have had a problem yet? |
@YaqiWang I don't understand what you're talking about. The TimedPrint capability prints out while the code is running - just like yours does. Explain how yours is different (other than not using the mechanism that is already in the code and is widely used). |
TimedPrint requires |
@YaqiWang How does yours "have more samples"? You have to add your statements to the code in just the same way as the others. As we add code / capability we would still need to add more of your statements in just the same way as the existing perfgraph and timedprint. I don't see any difference there. Anyway: you should know that I'm working on something even better than what's presented here. Please have a bit of patience. Also: No, we won't be merging your PR in the interim - it is a step backward. We need something that is better than all of these solutions. Please be patient, I think you'll like the new thing. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Closing due to 30 days of inactivity. See http://mooseframework.org/moose/framework_development/patch_to_code.html |
Work towards satisfying #15444 . Inspired by #15446
This extends both the
TimedPrint
andPerfGraph
capabilities to also track memory usage.Example of new
TimedPrint
:Example of new
PerfGraph
: