]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- try adding the prints back in and re-test
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 11 Aug 2017 13:54:16 +0000 (09:54 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 11 Aug 2017 13:54:16 +0000 (09:54 -0400)
Change-Id: I3a82b06ecc3c065240cc05871dee2881f20e414e

test/aaa_profiling/test_memusage.py

index 4409a9e968422af3ecd0a51b8cec13367ff5fc4f..dfb4a495532e879add04adf4604277adb1e2b9b7 100644 (file)
@@ -82,19 +82,19 @@ def profile_memory(maxtimes=250,
 
                 latest_max = max(samples[-5:])
                 if latest_max > max_:
-                    #print(
-                    #    "Max grew from %s to %s, max has "
-                    #    "grown for %s samples" % (
-                    #        max_, latest_max, max_grew_for
-                    #    )
-                    #)
+                    print(
+                        "Max grew from %s to %s, max has "
+                        "grown for %s samples" % (
+                            max_, latest_max, max_grew_for
+                        )
+                    )
                     max_ = latest_max
                     max_grew_for += 1
                     until_maxtimes += 1
                     continue
                 else:
-                    #print("Max remained at %s, %s more attempts left" %
-                    #      (max_, max_grew_for))
+                    print("Max remained at %s, %s more attempts left" %
+                          (max_, max_grew_for))
                     max_grew_for -= 1
                     if max_grew_for == 0:
                         success = True