summaryrefslogtreecommitdiffstats
path: root/Include/cpython
diff options
context:
space:
mode:
authorgsallam <123525874+gsallam@users.noreply.github.com>2023-10-27 03:57:29 (GMT)
committerGitHub <noreply@github.com>2023-10-27 03:57:29 (GMT)
commit21f068d80c6cc5de75f9df70fdd733d0ce9c70de (patch)
treedaceefb593efea137dd642df968075b24c6d52f8 /Include/cpython
parent3d2f1f0b830d86f16f42c42b54d3ea4453dac318 (diff)
downloadcpython-21f068d80c6cc5de75f9df70fdd733d0ce9c70de.zip
cpython-21f068d80c6cc5de75f9df70fdd733d0ce9c70de.tar.gz
cpython-21f068d80c6cc5de75f9df70fdd733d0ce9c70de.tar.bz2
gh-109587: Allow "precompiled" perf-trampolines to largely mitigate the cost of enabling perf-trampolines (#109666)
Diffstat (limited to 'Include/cpython')
-rw-r--r--Include/cpython/sysmodule.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/cpython/sysmodule.h b/Include/cpython/sysmodule.h
index df12ae4..9fd7cc0 100644
--- a/Include/cpython/sysmodule.h
+++ b/Include/cpython/sysmodule.h
@@ -21,3 +21,6 @@ PyAPI_FUNC(int) PyUnstable_WritePerfMapEntry(
unsigned int code_size,
const char *entry_name);
PyAPI_FUNC(void) PyUnstable_PerfMapState_Fini(void);
+PyAPI_FUNC(int) PyUnstable_CopyPerfMapFile(const char* parent_filename);
+PyAPI_FUNC(int) PyUnstable_PerfTrampoline_CompileCode(PyCodeObject *);
+PyAPI_FUNC(int) PyUnstable_PerfTrampoline_SetPersistAfterFork(int enable);