Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposed Changes
Added profiling option through
gprof
. This allows you to profile your SU2 application to see where it spends most of its time and therefore figure out which of your new features could use some better efficiency.How to enable profiling? Add the flag
-Denable-gprof
to yourmeson.py
command and re-configure.Now you can run SU2 or SU2 AD as normal. However, at the end, a file called
gmon.out
will be generated in your working directory.In order to get the analysis from the profiling, run
gprof <path/to/SU2/executable> > analysis.txt
. Now, the fileanalysis.txt
contains the profiling analysis which you can use to assess the efficiency of your code.Added instructions for enabling and using the gprof option on the su2code.github.io repository under PR #145
PR Checklist
pre-commit run --all
to format old commits.