summaryrefslogtreecommitdiffstats
path: root/Programs
diff options
context:
space:
mode:
Diffstat (limited to 'Programs')
-rw-r--r--Programs/_testembed.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Programs/_testembed.c b/Programs/_testembed.c
index 10ee6b7..ab2b2d0 100644
--- a/Programs/_testembed.c
+++ b/Programs/_testembed.c
@@ -810,6 +810,7 @@ static void set_most_env_vars(void)
#ifdef Py_STATS
putenv("PYTHONSTATS=1");
#endif
+ putenv("PYTHONPERFSUPPORT=1");
}
@@ -1844,6 +1845,10 @@ static int test_initconfig_api(void)
goto error;
}
+ if (PyInitConfig_SetInt(config, "perf_profiling", 2) < 0) {
+ goto error;
+ }
+
// Set a UTF-8 string (program_name)
if (PyInitConfig_SetStr(config, "program_name", PROGRAM_NAME_UTF8) < 0) {
goto error;