Expose the fileno() method of the underlying profiler.
This commit is contained in:
parent
7d17e6f3d0
commit
302e2bb81b
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue