diff --git a/Doc/library/profile.rst b/Doc/library/profile.rst index 32d2116e4b1491..845065e3813324 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