From 6e3632c0e5c52c21c4b97c084fb2bc5e934cb4d1 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Tue, 28 May 2019 12:16:59 -0700 Subject: [PATCH] libsysprof-ui: add local symbol decoder source to profiler This allows us to decode symbols locally at the end of a capture so that we avoid trying to decode them on a machine without the info. --- src/libsysprof-ui/sysprof-profiler-assistant.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libsysprof-ui/sysprof-profiler-assistant.c b/src/libsysprof-ui/sysprof-profiler-assistant.c index d725bea8..d4332420 100644 --- a/src/libsysprof-ui/sysprof-profiler-assistant.c +++ b/src/libsysprof-ui/sysprof-profiler-assistant.c @@ -187,6 +187,7 @@ sysprof_profiler_assistant_record_clicked_cb (SysprofProfilerAssistant *self, { g_autoptr(SysprofProfiler) profiler = NULL; g_autoptr(SysprofCaptureWriter) writer = NULL; + g_autoptr(SysprofSource) symbols_source = NULL; #ifdef __linux__ g_autoptr(SysprofSource) proc_source = NULL; #endif @@ -245,6 +246,10 @@ sysprof_profiler_assistant_record_clicked_cb (SysprofProfilerAssistant *self, sysprof_profiler_add_source (profiler, proc_source); #endif + /* Always add symbol decoder to save to file immediately */ + symbols_source = sysprof_symbols_source_new (); + sysprof_profiler_add_source (profiler, symbols_source); + /* Now allow the aids to add their sources */ gtk_container_foreach (GTK_CONTAINER (self->aid_flow_box), (GtkCallback) sysprof_profiler_assistant_foreach_cb,