[sysprof/wip/chergert/mem-preload] 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] memprof: disable G_SLICE during memory tracking
- Date: Wed, 5 Feb 2020 00:51:18 +0000 (UTC)
commit 3576a2d18c1bb68c29ebd348c986e473aa64203a
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]