[gnome-builder] sysprof: add memory collection source



commit 023a63f16e26bdca49b5f4d0196744041cd4d3aa
Author: Christian Hergert <chergert redhat com>
Date:   Tue Oct 16 07:09:27 2018 -0700

    sysprof: add memory collection source

 src/plugins/sysprof/gbp-sysprof-workbench-addin.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/plugins/sysprof/gbp-sysprof-workbench-addin.c 
b/src/plugins/sysprof/gbp-sysprof-workbench-addin.c
index e3e07f46b..8a303b135 100644
--- a/src/plugins/sysprof/gbp-sysprof-workbench-addin.c
+++ b/src/plugins/sysprof/gbp-sysprof-workbench-addin.c
@@ -158,6 +158,7 @@ profiler_run_handler (IdeRunManager *run_manager,
   g_autoptr(SpSource) proc_source = NULL;
   g_autoptr(SpSource) perf_source = NULL;
   g_autoptr(SpSource) hostinfo_source = NULL;
+  g_autoptr(SpSource) memory_source = NULL;
   IdeContext *context;
 
   g_assert (GBP_IS_SYSPROF_WORKBENCH_ADDIN (self));
@@ -230,6 +231,9 @@ profiler_run_handler (IdeRunManager *run_manager,
   hostinfo_source = sp_hostinfo_source_new ();
   sp_profiler_add_source (self->profiler, hostinfo_source);
 
+  memory_source = sp_memory_source_new ();
+  sp_profiler_add_source (self->profiler, memory_source);
+
   /*
    * TODO:
    *


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]