Parcourir la source

profiling sort by function calls

Joseph Brandenburg il y a 2 semaines
Parent
commit
6b1f58402e
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      ops_nodegroup.py

+ 2 - 0
ops_nodegroup.py

@@ -290,6 +290,8 @@ class ExecuteNodeTree(Operator):
             sortby = SortKey.TIME
             if 'cum' in environ.get("DOPROFILE").lower():
                 sortby = SortKey.CUMULATIVE
+            if "calls" in environ.get("DOPROFILE").lower():
+                sortby = SortKey.CALLS
             profile_function = environ.get("PROFILE_FUNCTION")
             printme1 = ''
             with cProfile.Profile() as pr: