Skip to content

Commit c6801b4

Browse files
bpo-5978: Document that profiling needs cmd/function to return (GH-7938)
<!-- issue-number: bpo-5978 --> https://bugs.python.org/issue5978 <!-- /issue-number --> (cherry picked from commit 937fb55) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
1 parent 7cbde0e commit c6801b4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Doc/library/profile.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,11 @@ functions:
297297

298298
Profile ``func(*args, **kwargs)``
299299

300+
Note that profiling will only work if the called command/function actually
301+
returns. If the interpreter is terminated (e.g. via a :func:`sys.exit` call
302+
during the called command/function execution) no profiling results will be
303+
printed.
304+
300305
.. _profile-stats:
301306

302307
The :class:`Stats` Class

0 commit comments

Comments
 (0)