mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Expose the fileno() method of the underlying profiler.
This commit is contained in:
parent
7d17e6f3d0
commit
302e2bb81b
1 changed files with 4 additions and 0 deletions
|
@ -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()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue