Expose the fileno() method of the underlying profiler.

This commit is contained in:
Fred Drake 2002-07-18 19:17:54 +00:00
parent 7d17e6f3d0
commit 302e2bb81b
1 changed files with 4 additions and 0 deletions

View File

@ -25,6 +25,10 @@ class Profile:
"""Close the logfile and terminate the profiler."""
self._prof.close()
def fileno(self):
"""Return the file descriptor of the profiler's log file."""
return self._prof.fileno()
def start(self):
"""Start the profiler."""
self._prof.start()