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

Drop special support for tracing Cython functions #206

Merged
merged 2 commits into from
Sep 27, 2022

Conversation

godlygeek
Copy link
Contributor

@godlygeek godlygeek commented Sep 13, 2022

Up until now, if the program being profiled included a Cython module built with profiling support enabled, those Cython functions would show up in our Python call stacks. This was rarely useful in practice, as most Cython libraries aren't distributed with profiling support enabled. Supporting this had significant maintenance costs that outweigh the benefits, so we are dropping that special support for Cython.

Signed-off-by: Matt Wozniski mwozniski@bloomberg.net

Up until now, if the program being profiled included a Cython module
built with profiling support enabled, those Cython functions would show
up in our Python call stacks. This was rarely useful in practice, as
most Cython libraries aren't distributed with profiling support enabled.
Supporting this had significant maintenance costs that outweigh the
benefits, so we are dropping that special support for Cython.

Signed-off-by: Matt Wozniski <mwozniski@bloomberg.net>
We set `PYTHONMALLOC=malloc` when doing our Valgrind pass so that
Valgrind has transparency into allocations being made by the process
that it's tracking, but we don't need or want that to apply to
subprocesses spawned by the tracked process that Valgrind doesn't need
to know about.

Because `PYTHONMALLOC=malloc` can actually change the behavior of these
tests depending on difficult to control factors, unset it.

Signed-off-by: Matt Wozniski <mwozniski@bloomberg.net>
@godlygeek godlygeek marked this pull request as ready for review September 14, 2022 22:27
@godlygeek
Copy link
Contributor Author

This isn't really a good way of filtering out the artificial Cython frames, but I haven't found a good way. I'd be very happy to switch to a cheaper method, if there is one.

Copy link
Member

@pablogsal pablogsal left a comment

Choose a reason for hiding this comment

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

LGTM

@pablogsal pablogsal merged commit 864e690 into bloomberg:main Sep 27, 2022
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.

None yet

2 participants