mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
sysprof-cli: set GJS_ENABLE_PROFILER
This commit is contained in:
@ -509,7 +509,10 @@ Examples:\n\
|
|||||||
sysprof_profiler_set_spawnable (profiler, spawnable);
|
sysprof_profiler_set_spawnable (profiler, spawnable);
|
||||||
|
|
||||||
if (gjs)
|
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)
|
if (use_trace_fd)
|
||||||
add_trace_fd (profiler, spawnable, NULL);
|
add_trace_fd (profiler, spawnable, NULL);
|
||||||
|
|||||||
@ -557,7 +557,10 @@ sysprof_recording_template_apply (SysprofRecordingTemplate *self,
|
|||||||
sysprof_profiler_set_spawnable (profiler, spawnable);
|
sysprof_profiler_set_spawnable (profiler, spawnable);
|
||||||
|
|
||||||
if (self->javascript_stacks)
|
if (self->javascript_stacks)
|
||||||
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 (self->power_profile && self->power_profile[0])
|
if (self->power_profile && self->power_profile[0])
|
||||||
|
|||||||
Reference in New Issue
Block a user