[sysprof/wip/chergert/mem-preload: 27/43] memprof: disable G_SLICE during memory tracking
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof/wip/chergert/mem-preload: 27/43] memprof: disable G_SLICE during memory tracking
- Date: Sat, 8 Feb 2020 01:00:38 +0000 (UTC)
commit 40ad37906d3ea9f5b3445192f67e30e87582a808
Author: Christian Hergert <chergert redhat com>
Date: Tue Feb 4 16:50:54 2020 -0800
memprof: disable G_SLICE during memory tracking
src/libsysprof/sysprof-memprof-source.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/src/libsysprof/sysprof-memprof-source.c b/src/libsysprof/sysprof-memprof-source.c
index 0de8bff..4856ba7 100644
--- a/src/libsysprof/sysprof-memprof-source.c
+++ b/src/libsysprof/sysprof-memprof-source.c
@@ -41,6 +41,7 @@ sysprof_memprof_source_modify_spawn (SysprofSource *source,
parent_iface->modify_spawn (source, spawnable);
#ifdef __linux__
+ sysprof_spawnable_setenv (spawnable, "G_SLICE", "always-malloc");
sysprof_spawnable_setenv (spawnable,
"LD_PRELOAD",
PACKAGE_LIBEXECDIR"/libsysprof-memory-"API_VERSION_S".so");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]