[sysprof] libsysprof-ui: add local symbol decoder source to profiler
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof] libsysprof-ui: add local symbol decoder source to profiler
- Date: Wed, 29 May 2019 22:49:11 +0000 (UTC)
commit 6e3632c0e5c52c21c4b97c084fb2bc5e934cb4d1
Author: Christian Hergert <chergert redhat com>
Date: Tue May 28 12:16:59 2019 -0700
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 d725bea..d433242 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]