File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed
Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -49,3 +49,34 @@ Note that holding an :term:`attached thread state` is not required for these API
4949 This is called by the runtime itself during interpreter shut-down. In
5050 general, there shouldn't be a reason to explicitly call this, except to
5151 handle specific scenarios such as forking.
52+
53+
54+ .. c:function:: int PyUnstable_CopyPerfMapFile(const char *parent_filename)
55+
56+ Open the ``/tmp/perf-$pid.map `` file and append the content of *parent_filename *
57+ to it.
58+
59+ :param parent_filename: The name of the file to copy.
60+ :return: 0 on success, -1 on failure.
61+
62+ .. versionadded :: 3.13
63+
64+
65+ .. c :function :: int PyUnstable_PerfTrampoline_CompileCode (PyCodeObject *code)
66+
67+ Compile the given code object using the current perf trampoline.
68+
69+ :param code: The code object to compile.
70+ :return: 0 on success, -1 on failure.
71+
72+ .. versionadded :: 3.13
73+
74+
75+ .. c :function :: int PyUnstable_PerfTrampoline_SetPersistAfterFork (int enable)
76+
77+ Set whether the perf trampoline should persist after a fork.
78+
79+ :param enable: 1 to enable, 0 to disable.
80+ :return: 0 on success, -1 on failure.
81+
82+ .. versionadded:: 3.13
You can’t perform that action at this time.
0 commit comments