Commit 3f71f1c8 authored by David Hendriks's avatar David Hendriks
Browse files

Removed the tracemalloc stuff

parent 6c3e2079
Loading
Loading
Loading
Loading
+0 −30
Original line number Diff line number Diff line
@@ -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

@@ -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()

@@ -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