Skip to content

Commit c2d4466

Browse files
committed
initial refactoring
1 parent fe9415e commit c2d4466

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mprof

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,8 @@ def read_mprofile_file(filename):
282282
- "func_timestamp": (dict) for each function, timestamps and memory
283283
usage upon entering and exiting.
284284
- 'cmd_line': (str) command-line ran for this profile.
285+
286+
XXX TODO this should be moved to memory_profiler.py
285287
"""
286288
func_ts = {}
287289
mem_usage = []
@@ -458,7 +460,7 @@ def plot_action():
458460
leg.get_frame().set_alpha(0.5)
459461
pl.grid()
460462
if options.output:
461-
pl.savefig(options.output)
463+
pl.savefig(options.output, transparent=True)
462464
else:
463465
pl.show()
464466

0 commit comments

Comments
 (0)