Browse Source

fixed comments

Darren Ranalli 23 years ago
parent
commit
91bd22aa5b
1 changed files with 3 additions and 2 deletions
  1. 3 2
      direct/src/showbase/PythonUtil.py

+ 3 - 2
direct/src/showbase/PythonUtil.py

@@ -364,7 +364,8 @@ PyUtilProfileDefaultFilename = 'profiledata'
 PyUtilProfileDefaultLines = 80
 PyUtilProfileDefaultLines = 80
 PyUtilProfileDefaultSorts = ['cumulative', 'time', 'calls']
 PyUtilProfileDefaultSorts = ['cumulative', 'time', 'calls']
 
 
-# first, call this from the prompt
+# call this from the prompt, and break back out to the prompt
+# to stop profiling
 def startProfile(filename=PyUtilProfileDefaultFilename,
 def startProfile(filename=PyUtilProfileDefaultFilename,
                  lines=PyUtilProfileDefaultLines,
                  lines=PyUtilProfileDefaultLines,
                  sorts=PyUtilProfileDefaultSorts,
                  sorts=PyUtilProfileDefaultSorts,
@@ -374,7 +375,7 @@ def startProfile(filename=PyUtilProfileDefaultFilename,
     if not silent:
     if not silent:
         printProfile(filename, lines, sorts)
         printProfile(filename, lines, sorts)
 
 
-# finally, break out to the prompt and call this
+# call this to see the results again
 def printProfile(filename=PyUtilProfileDefaultFilename,
 def printProfile(filename=PyUtilProfileDefaultFilename,
                  lines=PyUtilProfileDefaultLines,
                  lines=PyUtilProfileDefaultLines,
                  sorts=PyUtilProfileDefaultSorts,):
                  sorts=PyUtilProfileDefaultSorts,):