Skip to content

Commit fd23719

Browse files
authored
Merge pull request #336 from vthriller/master
%memit: fix repeats for short-living statements
2 parents 94423cb + d7e5486 commit fd23719

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

memory_profiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1112,7 +1112,7 @@ def memit(self, line='', cell=None):
11121112
counter += 1
11131113
tmp = memory_usage((_func_exec, (stmt, self.shell.user_ns)),
11141114
timeout=timeout, interval=interval,
1115-
max_usage=True,
1115+
max_usage=True, max_iterations=1,
11161116
include_children=include_children)
11171117
mem_usage.append(tmp)
11181118

0 commit comments

Comments
 (0)