gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-grid5k] 107/189: fix most time consuming


From: gnunet
Subject: [taler-grid5k] 107/189: fix most time consuming
Date: Thu, 28 Apr 2022 10:47:57 +0200

This is an automated email from the git hooks/post-receive script.

marco-boss pushed a commit to branch master
in repository grid5k.

commit 0a4fdd5c137d3d44fc4f39cbda822aa6d3ab1d66
Author: Boss Marco <bossm8@bfh.ch>
AuthorDate: Tue Mar 22 21:05:17 2022 +0100

    fix most time consuming
---
 additional/explain-visualizer/explain.py | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/additional/explain-visualizer/explain.py 
b/additional/explain-visualizer/explain.py
index 21fe580..b4a7aaa 100755
--- a/additional/explain-visualizer/explain.py
+++ b/additional/explain-visualizer/explain.py
@@ -34,7 +34,7 @@ class Plan:
             self._print_other()
 
     def _print_relation(self):
-        print(self.indent + f"Relation '{self.name}':")
+        print(self.indent + self.name + ":\n")
         if self.partitions_hit == 0:
             print(self.indent + f"    Not touched")
             print(self.indent + f"    Partitions would be Hit: 
{self.would_have_hit_partitions}")
@@ -49,7 +49,7 @@ class Plan:
         print("")
 
     def _print_other(self):
-        print(self.indent + f"'{self.name}':")
+        print(self.indent + f"{self.name}:")
         print("")
 
 
@@ -201,8 +201,11 @@ def analyze_from_query():
 
 
 def handle_log_line(line):
-    global plans
+
+    # reset global plans
+    global plans, most_time_consuming
     plans = {}
+    most_time_consuming = Plan("default", Type.RELATION, 0)
 
     match = log_statement_re.match(line)
     if match:

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]