Commit 302e2bb8 authored by Fred Drake's avatar Fred Drake

Expose the fileno() method of the underlying profiler.

parent 7d17e6f3
...@@ -25,6 +25,10 @@ class Profile: ...@@ -25,6 +25,10 @@ class Profile:
"""Close the logfile and terminate the profiler.""" """Close the logfile and terminate the profiler."""
self._prof.close() self._prof.close()
def fileno(self):
"""Return the file descriptor of the profiler's log file."""
return self._prof.fileno()
def start(self): def start(self):
"""Start the profiler.""" """Start the profiler."""
self._prof.start() self._prof.start()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment