eric6/DataViews/PyProfileDialog.py

changeset 8222
5994b80b8760
parent 8218
7c09585bd960
diff -r 0572a215bd2f -r 5994b80b8760 eric6/DataViews/PyProfileDialog.py
--- a/eric6/DataViews/PyProfileDialog.py	Sun Apr 11 16:53:48 2021 +0200
+++ b/eric6/DataViews/PyProfileDialog.py	Sun Apr 11 18:45:10 2021 +0200
@@ -179,34 +179,37 @@
                 if self.cancelled:
                     return
                 
-                if (not (self.ericpath and
+                if (
+                    not (self.ericpath and
                          func[0].startswith(self.ericpath)) and
                     not func[0].startswith("DebugClients") and
                     func[0] != "profile" and
                     not (exclude and (func[0].startswith(self.pyLibPath) or
                                       func[0] == "")
-                         )):
-                    if (self.file is None or func[0].startswith(self.file) or
-                            func[0].startswith(self.pyLibPath)):
-                        # calculate the totals
-                        total_calls += nc
-                        prim_calls += cc
-                        total_tt += tt
-                        
-                        if nc != cc:
-                            c = "{0:d}/{1:d}".format(nc, cc)
-                        else:
-                            c = str(nc)
-                        if nc == 0:
-                            tpc = "{0: 8.3f}".format(0.0)
-                        else:
-                            tpc = "{0: 8.3f}".format(tt / nc)
-                        if cc == 0:
-                            cpc = "{0: 8.3f}".format(0.0)
-                        else:
-                            cpc = "{0: 8.3f}".format(ct / cc)
-                        self.__createResultItem(c, tt, tpc, ct, cpc, func[0],
-                                                func[1], func[2])
+                         ) and
+                    (self.file is None or
+                     func[0].startswith(self.file) or
+                     func[0].startswith(self.pyLibPath))
+                ):
+                    # calculate the totals
+                    total_calls += nc
+                    prim_calls += cc
+                    total_tt += tt
+                    
+                    if nc != cc:
+                        c = "{0:d}/{1:d}".format(nc, cc)
+                    else:
+                        c = str(nc)
+                    if nc == 0:
+                        tpc = "{0: 8.3f}".format(0.0)
+                    else:
+                        tpc = "{0: 8.3f}".format(tt / nc)
+                    if cc == 0:
+                        cpc = "{0: 8.3f}".format(0.0)
+                    else:
+                        cpc = "{0: 8.3f}".format(ct / cc)
+                    self.__createResultItem(c, tt, tpc, ct, cpc, func[0],
+                                            func[1], func[2])
                     
                 self.checkProgress.setValue(progress)
                 QApplication.processEvents()

eric ide

mercurial