Skip to content

Commit

Permalink
WIP #127 permutation
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Nov 21, 2019
1 parent e2ee372 commit fa77e98
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/leak_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
# TESTFILE = "tests/data/issue119_data.txt"
TESTFILE = os.path.join(_path, "data", "issue119_data.txt")

t0 = time.time()


def get_memory():
return resource.getrusage(resource.RUSAGE_SELF).ru_maxrss/1024.
Expand All @@ -36,7 +38,7 @@ def task():
final = get_memory()

d = dict(
time=time.time(),
time=time.time() - t0,
before=before,
after=after,
final=final,
Expand All @@ -46,6 +48,6 @@ def task():


if __name__ == "__main__":
for i in range(10):
while True:
task()
time.sleep(1.0)

0 comments on commit fa77e98

Please sign in to comment.