]> granicus.if.org Git - python/commitdiff
bpo-5978: Document that profiling needs cmd/function to return (GH-7938)
authorAndrés Delfino <adelfino@gmail.com>
Sat, 28 Jul 2018 10:01:24 +0000 (07:01 -0300)
committerChristian Heimes <christian@python.org>
Sat, 28 Jul 2018 10:01:24 +0000 (11:01 +0100)
<!-- issue-number: bpo-5978 -->
https://bugs.python.org/issue5978
<!-- /issue-number -->

Doc/library/profile.rst

index 5e33efe1c16528045ad4a3d94bfdedf2876bb2de..1a772fb7f9414be917b59bf9a0e0d461d31c1a71 100644 (file)
@@ -310,6 +310,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