[3.6] bpo-5978: Document that profiling needs cmd/function to return … · python/cpython@0041d72 (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit 0041d72

andresdelfinozooba

authored and

committed

File tree

1 file changed

lines changed

1 file changed

lines changed

Original file line number Diff line number Diff line change
@@ -290,6 +290,11 @@ functions:
290 290
291 291 Profile ``func(*args, **kwargs)``
292 292
293 +Note that profiling will only work if the called command/function actually
294 +returns. If the interpreter is terminated (e.g. via a :func:`sys.exit` call
295 +during the called command/function execution) no profiling results will be
296 +printed.
297 +
293 298 .. _profile-stats:
294 299
295 300 The :class:`Stats` Class