Loading binarycpython/utils/grid.py +0 −30 Original line number Diff line number Diff line Loading @@ -38,9 +38,6 @@ import argparse import subprocess import importlib.util import cProfile from typing import Union, Any from pathos.helpers import mp as pathos_multiprocess Loading Loading @@ -962,15 +959,6 @@ class Population: This function is called by _evolve_population_grid """ import tracemalloc tracemalloc.start() # ... start your application ... snapshot1 = tracemalloc.take_snapshot() # set start timer start_process_time = datetime.datetime.now() Loading Loading @@ -1244,24 +1232,6 @@ class Population: 0, ) print("INSIDE THREAD") print(Moecache.keys()) for key in Moecache.keys(): print(key, Moecache[key]) print("") print("INSIDE THREAD") # ... call the function leaking memory ... snapshot2 = tracemalloc.take_snapshot() top_stats = snapshot2.compare_to(snapshot1, 'lineno') print("[ Top 10 differences ]") for stat in top_stats[:10]: print(stat) return output_dict # Single system Loading Loading
binarycpython/utils/grid.py +0 −30 Original line number Diff line number Diff line Loading @@ -38,9 +38,6 @@ import argparse import subprocess import importlib.util import cProfile from typing import Union, Any from pathos.helpers import mp as pathos_multiprocess Loading Loading @@ -962,15 +959,6 @@ class Population: This function is called by _evolve_population_grid """ import tracemalloc tracemalloc.start() # ... start your application ... snapshot1 = tracemalloc.take_snapshot() # set start timer start_process_time = datetime.datetime.now() Loading Loading @@ -1244,24 +1232,6 @@ class Population: 0, ) print("INSIDE THREAD") print(Moecache.keys()) for key in Moecache.keys(): print(key, Moecache[key]) print("") print("INSIDE THREAD") # ... call the function leaking memory ... snapshot2 = tracemalloc.take_snapshot() top_stats = snapshot2.compare_to(snapshot1, 'lineno') print("[ Top 10 differences ]") for stat in top_stats[:10]: print(stat) return output_dict # Single system Loading