From 0041d721a6f6b312ef762838d390fc4d64cf5e3a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9s=20Delfino?= Date: Sat, 28 Jul 2018 09:24:35 -0300 Subject: [PATCH] [3.6] bpo-5978: Document that profiling needs cmd/function to return (GH-8515) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit https://bugs.python.org/issue5978 (cherry picked from commit 937fb55d35373fd2701078251840b6be0465a6e1) Co-authored-by: Andrés Delfino --- Doc/library/profile.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Doc/library/profile.rst b/Doc/library/profile.rst index 32d2116e4b..845065e381 100644 --- a/Doc/library/profile.rst +++ b/Doc/library/profile.rst @@ -290,6 +290,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 -- 2.50.1