From 3f71f1c8ac0f9c3a9fe1fd81c79a50798e9d4b6c Mon Sep 17 00:00:00 2001
From: David Hendriks <davidhendriks93@gmail.com>
Date: Mon, 31 May 2021 13:16:28 +0100
Subject: [PATCH] Removed the tracemalloc stuff

---
 binarycpython/utils/grid.py | 30 ------------------------------
 1 file changed, 30 deletions(-)

diff --git a/binarycpython/utils/grid.py b/binarycpython/utils/grid.py
index da0239e41..5ba426fe0 100644
--- a/binarycpython/utils/grid.py
+++ b/binarycpython/utils/grid.py
@@ -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
-- 
GitLab