-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing bug in memory profiler (#704)
Upon trying to use memory_profiler.py to debug a problem a user reported it was broken. Indeed, it appeared to have a couple of bugs in it. Furthermore, at least in Python 3.x, the third-party tool pympler.asizeof() was so slow as to be entirely unusualble. To this end, I have fixed a couple of bugs in memory_profiler.py and removed all references to pympler. My guess is that the Python standard library sys.getsizeof() method will under-report memory usage a bit. BUT it does work, and it works fast, without failure. So that's still a big win. Also, I was able to delete a bunch of unused code.
- Loading branch information
1 parent
1ca96b6
commit 8c46f8c
Showing
5 changed files
with
55 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters