-
Notifications
You must be signed in to change notification settings - Fork 129
Adding memory profiling ? #216
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
Comments
I think this is beyond the scope of this project. Tracking memory will impact the performance of tracking time. For energy tracking, check out codecarbon. |
I guess if that's the main concern, we could give the user an option to choose what he wants to track.
Thank you for the reference, it's indeed a great package, but it lacks the line-by-line details and also the flexibility that "user specific columns" might add (for example a cost function, or a function to highlight only specific consumption patterns or some other custom logic ..) |
If you feel like you can write the logic to make it work, by all means go for it. I think it would be an interesting tool, and I may even use it. However, I don't have the bandwidth to entertain adding a new scope to this project. As such I'm going to close this issue as it pertains to this repository. But don't let that stop you from implementing the feature. If you can get a working proof of concept, I'd love to hear about it and I'd link to it in the README here in related work. You're more than welcome to take this source c 8A2C ode as a starting point and redistribute it under a new name. Also I think scalene does have some sort of memory profiling (but probably not line-by-line). |
I perfectly understand, thank you for the encouragement! Since I'm not that familiar with Cython (which is heavily used by line_profiler), I guess I'll start the other way around, forking memory_profiler (which is in pure python) and I'll see what I can get from there. Anyway, it was nice hearing your opinion. Thank you for your time. |
As memory_profiler is no longer maintained, I see this project as a perfect place to continue on it's work and provide a full powerful line_profiler that combine both information on time and memory consumption in one place, providing for instance some profiling results like this:
I'd really like to know what do you think about this possibility ?
I've also an idea of letting the user add more columns to this results based on his use case, for example:
Which would add a new column called Energy with the given formula applied
The text was updated successfully, but these errors were encountered: