Browse files


  • Loading branch information...
1 parent c897818 commit 9de431ebfa7702b89b5a266585f28c99bfd6bdff @fabianp committed Aug 24, 2012
Showing with 5 additions and 3 deletions.
  1. +3 −2 README.rst
  2. +2 −1
@@ -169,8 +169,9 @@ For more details, see the docstrings of the magics.
operating system kernel about the ammount of memory the current
process has allocated, which might be slightly different from
the ammount of memory that is actually used by the Python
- interpreter. For this reason, the output is only an
- approximation, and might vary between runs.
+ interpreter. Also, because of how the garbage collector works in
+ Python the result might be different between platforms and even
+ between runs.
* Q: Does it work under windows ?
* A: Yes, but you will need the
@@ -197,6 +197,7 @@ def runctx(self, cmd, globals, locals):
def runcall(self, func, *args, **kw):
""" Profile a single function call.
+ # XXX where is this used ? can be removed ?
return func(*args, **kw)
@@ -220,7 +221,7 @@ def disable_by_count(self):
def trace_memory_usage(self, frame, event, arg):
+ """Callback for sys.settrace"""
if event in ('line', 'return') and frame.f_code in self.code_map:
lineno = frame.f_lineno
if event == 'return':

0 comments on commit 9de431e

Please sign in to comment.