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 gprof profiling support. #7547

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

Rossmaxx
Copy link
Contributor

@Rossmaxx Rossmaxx commented Oct 17, 2024

Adds gprof support for profiling the builds. Also removed the -fomit-frame-pointer flag from swh and tap suite as the flag interferes with the -pg flag used here.

per https://stackoverflow.com/questions/14666665/trying-to-understand-gcc-option-fomit-frame-pointer , this option makes getting stack traces nearly impossible, and the performance improvements seems to be negligible on 64 bit systems, especially when debugging.

to use gprof:
after building with the WANT_DEBUG_GPROF flag turned on, run lmms, and after running, gprof ./lmms gmon.out > report.txt from the build directory. This will generate a text file with the profiling data. Do note that this method is tested only on GCC, and windows builds might not be supported.

plugins/LadspaEffect/swh/CMakeLists.txt Outdated Show resolved Hide resolved
CMakeLists.txt Outdated Show resolved Hide resolved
CMakeLists.txt Outdated Show resolved Hide resolved
@Rossmaxx
Copy link
Contributor Author

I have updated the title description according to the recent changes.

@Rossmaxx Rossmaxx changed the title Improve debugging ability and add gprof profiling support. Add gprof profiling support. Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants