Browse Source

showbase: Fix undefined function use in ProfileSession.py

rdb 2 years ago
parent
commit
a3f6a62de0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      direct/src/showbase/ProfileSession.py

+ 1 - 1
direct/src/showbase/ProfileSession.py

@@ -33,7 +33,7 @@ class PercentStats(pstats.Stats):
         if self.files: print()
         indent = ' ' * 8
         for func in self.top_level:
-            print(indent, func_get_function_name(func))
+            print(indent, pstats.func_get_function_name(func))
 
         print(indent, self.total_calls, "function calls", end=' ')
         if self.total_calls != self.prim_calls: