gjs: add gjs source back

This sets various environment variables we need.
This commit is contained in:
Christian Hergert
2019-06-03 18:01:53 -07:00
parent d25975cf89
commit af32235541
6 changed files with 109 additions and 5 deletions

View File

@ -221,8 +221,7 @@ main (gint argc,
if (gjs)
{
source = sysprof_tracefd_source_new ();
sysprof_tracefd_source_set_envvar (SYSPROF_TRACEFD_SOURCE (source), "GJS_TRACE_FD");
source = sysprof_gjs_source_new ();
sysprof_profiler_add_source (profiler, source);
g_object_unref (source);
}