[sysprof] libsysprof: apply whole-system during capture replay
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof] libsysprof: apply whole-system during capture replay
- Date: Wed, 4 Mar 2020 19:05:59 +0000 (UTC)
commit 4af293a364b7cff2434c98f5a871bb0f8f2d3c86
Author: Christian Hergert <chergert redhat com>
Date: Wed Mar 4 11:04:49 2020 -0800
libsysprof: apply whole-system during capture replay
Fixes #31
src/libsysprof/sysprof-local-profiler.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/libsysprof/sysprof-local-profiler.c b/src/libsysprof/sysprof-local-profiler.c
index 3c4d31a..37f7e9e 100644
--- a/src/libsysprof/sysprof-local-profiler.c
+++ b/src/libsysprof/sysprof-local-profiler.c
@@ -1020,6 +1020,7 @@ sysprof_local_profiler_new_replay (SysprofCaptureReader *reader)
g_autofree gchar *cwd = NULL;
g_auto(GStrv) argv = NULL;
g_auto(GStrv) env = NULL;
+ gboolean whole_system;
gboolean inherit;
gboolean spawn;
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);
cwd = g_key_file_get_string (keyfile, "profiler", "spawn-cwd", 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 */
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_env (SYSPROF_PROFILER (self), CSTRV (env));
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++)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]