diff options
author | Erlend E. Aasland <erlend.aasland@protonmail.com> | 2022-10-27 13:06:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-27 13:06:48 (GMT) |
commit | 723ebe76e787cfa6b08cc9587dd679f3234a1025 (patch) | |
tree | 6e46cce9595e7411b5dfdf83fb05b6536baf325b /Python/clinic/sysmodule.c.h | |
parent | 22863df7ca5f9cd01a40ab3dce3d067ec5666081 (diff) | |
download | cpython-723ebe76e787cfa6b08cc9587dd679f3234a1025.zip cpython-723ebe76e787cfa6b08cc9587dd679f3234a1025.tar.gz cpython-723ebe76e787cfa6b08cc9587dd679f3234a1025.tar.bz2 |
gh-96143: Improve perf profiler docs (#96445)
Diffstat (limited to 'Python/clinic/sysmodule.c.h')
-rw-r--r-- | Python/clinic/sysmodule.c.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Python/clinic/sysmodule.c.h b/Python/clinic/sysmodule.c.h index 6864b8b..3dc7aa8 100644 --- a/Python/clinic/sysmodule.c.h +++ b/Python/clinic/sysmodule.c.h @@ -1231,7 +1231,7 @@ PyDoc_STRVAR(sys_activate_stack_trampoline__doc__, "activate_stack_trampoline($module, backend, /)\n" "--\n" "\n" -"Activate the perf profiler trampoline."); +"Activate stack profiler trampoline *backend*."); #define SYS_ACTIVATE_STACK_TRAMPOLINE_METHODDEF \ {"activate_stack_trampoline", (PyCFunction)sys_activate_stack_trampoline, METH_O, sys_activate_stack_trampoline__doc__}, @@ -1268,7 +1268,9 @@ PyDoc_STRVAR(sys_deactivate_stack_trampoline__doc__, "deactivate_stack_trampoline($module, /)\n" "--\n" "\n" -"Dectivate the perf profiler trampoline."); +"Deactivate the current stack profiler trampoline backend.\n" +"\n" +"If no stack profiler is activated, this function has no effect."); #define SYS_DEACTIVATE_STACK_TRAMPOLINE_METHODDEF \ {"deactivate_stack_trampoline", (PyCFunction)sys_deactivate_stack_trampoline, METH_NOARGS, sys_deactivate_stack_trampoline__doc__}, @@ -1286,7 +1288,7 @@ PyDoc_STRVAR(sys_is_stack_trampoline_active__doc__, "is_stack_trampoline_active($module, /)\n" "--\n" "\n" -"Returns *True* if the perf profiler trampoline is active."); +"Return *True* if a stack profiler trampoline is active."); #define SYS_IS_STACK_TRAMPOLINE_ACTIVE_METHODDEF \ {"is_stack_trampoline_active", (PyCFunction)sys_is_stack_trampoline_active, METH_NOARGS, sys_is_stack_trampoline_active__doc__}, @@ -1343,4 +1345,4 @@ sys_is_stack_trampoline_active(PyObject *module, PyObject *Py_UNUSED(ignored)) #ifndef SYS_GETANDROIDAPILEVEL_METHODDEF #define SYS_GETANDROIDAPILEVEL_METHODDEF #endif /* !defined(SYS_GETANDROIDAPILEVEL_METHODDEF) */ -/*[clinic end generated code: output=15318cdd96b62b06 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=2b5e1bc24a3348bd input=a9049054013a1b77]*/ |