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

Enable profiling of Cython functions #35

Merged
merged 1 commit into from
Dec 1, 2020

Conversation

jakirkham
Copy link
Collaborator

As it is not possible to profile Cython functions by default, this adds a few options to ensure that Cython compiles these functions with profiling support enabled. This way we should now be able to see how long they take with cProfile as used in our nightly benchmarks.

As it is not possible to profile Cython functions by default, this adds
a few options to ensure that Cython compiles these functions with
profiling support enabled. This way we should now be able to see how
long they take with cProfile as used in our nightly benchmarks.
@@ -21,7 +21,7 @@ which python

echo "Cythonize Distributed"
pushd "${CONDA_PREFIX}/lib/python3.8/site-packages/"
cythonize -i \
cythonize -i --directive="profile=True" \
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is explained in the Cython docs for profiling.

@jakirkham jakirkham merged commit 1783b6f into quasiben:main Dec 1, 2020
@jakirkham jakirkham deleted the enable_cython_prof branch December 1, 2020 00:57
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.

1 participant