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

Centralize all pythran-managed allocation in one place #2176

Merged
merged 2 commits into from
Feb 6, 2024

Conversation

serge-sans-paille
Copy link
Owner

This should make it easier to instrument allocations.

As a side effect slightly improve some string manipulation.

@serge-sans-paille
Copy link
Owner Author

cc @jeanlaroche

@serge-sans-paille serge-sans-paille force-pushed the feature/centralize-allocation branch from abf17c4 to 3ad5ac4 Compare January 22, 2024 07:30
This should make it easier to instrument allocations.

As a side effect slightly improve some string manipulation.
@serge-sans-paille serge-sans-paille force-pushed the feature/centralize-allocation branch from 3ad5ac4 to d9f4cfc Compare January 22, 2024 09:08
@serge-sans-paille
Copy link
Owner Author

@jeanlaroche : I've added a flag --trace-allocations to automate the instrumentation of memory allocation, is that close to what you had in mind?

@serge-sans-paille serge-sans-paille force-pushed the feature/centralize-allocation branch 2 times, most recently from c337ce1 to 98fc147 Compare January 28, 2024 14:46
@jeanlaroche
Copy link
Contributor

This works really well and is super super useful for me!

When turned on, Pythran instrument the generated code so that it dumps
line number information about python statements that lead to memory allocation.
@serge-sans-paille serge-sans-paille force-pushed the feature/centralize-allocation branch from 98fc147 to 801e1af Compare February 5, 2024 20:18
@serge-sans-paille
Copy link
Owner Author

I've added some extra documentation, will merge afterward

@serge-sans-paille serge-sans-paille merged commit 34db77e into master Feb 6, 2024
17 checks passed
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