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 937fb55d35)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
This commit is contained in:
Miss Islington (bot) 2018-07-28 05:23:42 -07:00 committed by GitHub
parent 7cbde0e09d
commit c6801b48a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -297,6 +297,11 @@ functions:
Profile ``func(*args, **kwargs)``
Note that profiling will only work if the called command/function actually
returns. If the interpreter is terminated (e.g. via a :func:`sys.exit` call
during the called command/function execution) no profiling results will be
printed.
.. _profile-stats:
The :class:`Stats` Class