Skip to content

Commit 0041d72

Browse files
andresdelfinozooba
authored andcommitted
[3.6] bpo-5978: Document that profiling needs cmd/function to return (GH-8515)
<!-- issue-number: bpo-5978 --> https://bugs.python.org/issue5978 <!-- /issue-number --> (cherry picked from commit 937fb55) Co-authored-by: Andrés Delfino <[email protected]>
1 parent 9d85856 commit 0041d72

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
@@ -290,6 +290,11 @@ functions:
290290

291291
Profile ``func(*args, **kwargs)``
292292

293+
Note that profiling will only work if the called command/function actually
294+
returns. If the interpreter is terminated (e.g. via a :func:`sys.exit` call
295+
during the called command/function execution) no profiling results will be
296+
printed.
297+
293298
.. _profile-stats:
294299

295300
The :class:`Stats` Class

0 commit comments

Comments
 (0)