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

TinyProfiler:: Add more runtime parameters #4100

Merged
merged 1 commit into from
Aug 21, 2024

Conversation

WeiqunZhang
Copy link
Member

Add the following ParmParse parameters to TinyProfiler:

  • tiny_profiler.enabled

    This parameter can be used to disable tiny profiling including CArena memory profiling at run time.

  • tiny_profiler.memprof_enabled

    This parameter can be used to disable tiny profiler's memory arena profiling at run time. If tiny_profiler.enabled is false, this parameter has no effects.

  • tiny_profiler.output_file

    If this parameter is empty, the output of tiny profiling is dumped on the default out stream of AMReX. If it's not empty, it specifies the file name for the output. Note that /dev/null is a special name that mean a null file.

@WeiqunZhang WeiqunZhang linked an issue Aug 21, 2024 that may be closed by this pull request
@WeiqunZhang WeiqunZhang force-pushed the tp_fname branch 2 times, most recently from afa996d to 15a99bd Compare August 21, 2024 01:25
Add the following ParmParse parameters to TinyProfiler:

  * tiny_profiler.enabled

    This parameter can be used to disable tiny profiling including CArena
    memory profiling at run time.

  * tiny_profiler.memprof_enabled

    This parameter can be used to disable tiny profiler's memory arena
    profiling at run time. If tiny_profiler.enabled is false, this parameter
    has no effects.

  * tiny_profiler.output_file

    If this parameter is empty, the output of tiny profiling is dumped on
    the default out stream of AMReX. If it's not empty, it specifies the
    file name for the output. Note that `/dev/null` is a special name that
    mean a null file.
@WeiqunZhang WeiqunZhang merged commit dea2432 into AMReX-Codes:development Aug 21, 2024
71 of 72 checks passed
@WeiqunZhang WeiqunZhang deleted the tp_fname branch August 21, 2024 16:00
If this parameter is empty, the output of tiny profiling is dumped on the
default out stream of AMReX. If it's not empty, it specifies the file
name for the output. Note that ``/dev/null`` is a special name that mean
a null file.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe that means no output.?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will add that to the TinyProfiler::flush PR I am preparing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tiny Profiler: Runtime Options (Enable/Disable, Filename)
3 participants