mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-09 22:50:54 +00:00
@ -1020,6 +1020,7 @@ sysprof_local_profiler_new_replay (SysprofCaptureReader *reader)
|
|||||||
g_autofree gchar *cwd = NULL;
|
g_autofree gchar *cwd = NULL;
|
||||||
g_auto(GStrv) argv = NULL;
|
g_auto(GStrv) argv = NULL;
|
||||||
g_auto(GStrv) env = NULL;
|
g_auto(GStrv) env = NULL;
|
||||||
|
gboolean whole_system;
|
||||||
gboolean inherit;
|
gboolean inherit;
|
||||||
gboolean spawn;
|
gboolean spawn;
|
||||||
gint n_sources;
|
gint n_sources;
|
||||||
@ -1042,6 +1043,7 @@ sysprof_local_profiler_new_replay (SysprofCaptureReader *reader)
|
|||||||
env = g_key_file_get_string_list (keyfile, "profiler", "spawn-env", NULL, NULL);
|
env = g_key_file_get_string_list (keyfile, "profiler", "spawn-env", NULL, NULL);
|
||||||
cwd = g_key_file_get_string (keyfile, "profiler", "spawn-cwd", NULL);
|
cwd = g_key_file_get_string (keyfile, "profiler", "spawn-cwd", NULL);
|
||||||
n_sources = g_key_file_get_integer (keyfile, "profiler", "n-sources", NULL);
|
n_sources = g_key_file_get_integer (keyfile, "profiler", "n-sources", NULL);
|
||||||
|
whole_system = g_key_file_get_boolean (keyfile, "profiler", "whole-system", NULL);
|
||||||
|
|
||||||
/* Ignore empty string */
|
/* Ignore empty string */
|
||||||
if (cwd != NULL && *cwd == 0)
|
if (cwd != NULL && *cwd == 0)
|
||||||
@ -1052,6 +1054,7 @@ sysprof_local_profiler_new_replay (SysprofCaptureReader *reader)
|
|||||||
sysprof_profiler_set_spawn_cwd (SYSPROF_PROFILER (self), cwd);
|
sysprof_profiler_set_spawn_cwd (SYSPROF_PROFILER (self), cwd);
|
||||||
sysprof_profiler_set_spawn_env (SYSPROF_PROFILER (self), CSTRV (env));
|
sysprof_profiler_set_spawn_env (SYSPROF_PROFILER (self), CSTRV (env));
|
||||||
sysprof_profiler_set_spawn_inherit_environ (SYSPROF_PROFILER (self), inherit);
|
sysprof_profiler_set_spawn_inherit_environ (SYSPROF_PROFILER (self), inherit);
|
||||||
|
sysprof_profiler_set_whole_system (SYSPROF_PROFILER (self), whole_system);
|
||||||
|
|
||||||
for (guint i = 0; i < n_sources; i++)
|
for (guint i = 0; i < n_sources; i++)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user