Skip to content

Commit

Permalink
Cleaner output
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian Pedregosa committed Aug 1, 2012
1 parent 1cb18a7 commit 33caba8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions memory_profiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,8 @@ def show_results(prof, stream=None):
mem = max(lines_normalized[l])
inc = mem - mem_old
mem_old = mem
mem = '{0:5.4f} MB'.format(mem)
inc = '{0:5.4f} MB'.format(inc)
mem = '{0:9.2f} MB'.format(mem)
inc = '{0:9.2f} MB'.format(inc)
stream.write(template.format(l, mem, inc, sub_lines[i]))
stream.write('\n\n')

Expand Down

0 comments on commit 33caba8

Please sign in to comment.