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 a build configuration for profiling #108

Open
speckdavid opened this issue Jul 10, 2020 · 1 comment
Open

Add a build configuration for profiling #108

speckdavid opened this issue Jul 10, 2020 · 1 comment
Assignees

Comments

@speckdavid
Copy link
Contributor

We would like to add a build configuration for profiling with pprof which is a tool for visualization and analysis of profiling data.

@speckdavid
Copy link
Contributor Author

speckdavid commented Jul 29, 2020

There are now 4 different build options: release, debug, release_profile and debug_profile. The debug mode has been changed from -O3 optimization to -O1 optimization.

When you run the planner in one of the profile options, profiles for the parser and search are created.

We should probably add an explanation to the wiki.

  • Install gperftools and google-pprof:
    sudo apt-get install google-perftools libgoogle-perftools-dev google-pprof

  • View a profile (change binary accordingly):
    ~/go/bin/pprof -web builds/release-profile/search/search prost_search.profile

  • Note, that I had to install pprof with the following command.
    go get -u github.com/google/pprof

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

No branches or pull requests

1 participant