sysprof-cli: set GJS_ENABLE_PROFILER

This commit is contained in:
Christian Hergert
2024-08-14 14:38:06 -07:00
parent 836edc0c87
commit 32690091ef
2 changed files with 8 additions and 2 deletions

View File

@ -509,7 +509,10 @@ Examples:\n\
sysprof_profiler_set_spawnable (profiler, spawnable);
if (gjs)
add_trace_fd (profiler, spawnable, "GJS_TRACE_FD");
{
sysprof_spawnable_setenv (spawnable, "GJS_ENABLE_PROFILER", "1");
add_trace_fd (profiler, spawnable, "GJS_TRACE_FD");
}
if (use_trace_fd)
add_trace_fd (profiler, spawnable, NULL);