Skip to content

Commit 937fb55

Browse files
andresdelfinotiran
authored andcommitted
bpo-5978: Document that profiling needs cmd/function to return (GH-7938)
<!-- issue-number: bpo-5978 --> https://bugs.python.org/issue5978 <!-- /issue-number -->
1 parent b4bc5ca commit 937fb55

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
@@ -310,6 +310,11 @@ functions:
310310

311311
Profile ``func(*args, **kwargs)``
312312

313+
Note that profiling will only work if the called command/function actually
314+
returns. If the interpreter is terminated (e.g. via a :func:`sys.exit` call
315+
during the called command/function execution) no profiling results will be
316+
printed.
317+
313318
.. _profile-stats:
314319

315320
The :class:`Stats` Class

0 commit comments

Comments
 (0)