From 431d3db9149ff57b698ddb0e87cac2273569f2c4 Mon Sep 17 00:00:00 2001 From: spacemanspiff2007 <10754716+spacemanspiff2007@users.noreply.github.com> Date: Fri, 27 Sep 2024 15:36:15 +0200 Subject: [PATCH 1/2] Update profile.rst Added info about parallel use --- Doc/library/profile.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Doc/library/profile.rst b/Doc/library/profile.rst index 3334833eba6b8c..6ecaf75d316d56 100644 --- a/Doc/library/profile.rst +++ b/Doc/library/profile.rst @@ -44,6 +44,12 @@ profiling interface: but not for C-level functions, and so the C code would seem faster than any Python one. +.. note:: + + Only one profiler can be active at any given time. + Attemting to enable a profiler while another one is already in use will + result in a :exc:`ValueError`. + .. _profile-instant: From 45e7e2068c9b1281bc21ba480c34d206cb6569f8 Mon Sep 17 00:00:00 2001 From: spacemanspiff2007 <10754716+spacemanspiff2007@users.noreply.github.com> Date: Fri, 27 Sep 2024 16:22:27 +0200 Subject: [PATCH 2/2] removed tailing whitepace --- Doc/library/profile.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/profile.rst b/Doc/library/profile.rst index 6ecaf75d316d56..c415615150263e 100644 --- a/Doc/library/profile.rst +++ b/Doc/library/profile.rst @@ -47,7 +47,7 @@ profiling interface: .. note:: Only one profiler can be active at any given time. - Attemting to enable a profiler while another one is already in use will + Attemting to enable a profiler while another one is already in use will result in a :exc:`ValueError`.