sysprof: allow passing program path to sysprof

If the path provided to us is an executable program (instead of a syscap
file) then we can setup the path as the binary to execute in the profiler
assistant and save the user a couple clicks.
This commit is contained in:
Christian Hergert
2020-01-23 11:59:07 -08:00
parent 599ecaebe1
commit 731b6dd379
3 changed files with 33 additions and 3 deletions

View File

@ -30,6 +30,8 @@ G_BEGIN_DECLS
G_DECLARE_FINAL_TYPE (SysprofProfilerAssistant, sysprof_profiler_assistant, SYSPROF, PROFILER_ASSISTANT, GtkBin)
GtkWidget *sysprof_profiler_assistant_new (void);
GtkWidget *sysprof_profiler_assistant_new (void);
void sysprof_profiler_assistant_set_executable (SysprofProfilerAssistant *self,
const gchar *path);
G_END_DECLS