libsysprof: add SysprofSymbolsBundle:enable-debuginfod property

This adds a property instead of the global to key off if the debuginfod
resolver should be used to bundle symbols into the capture at the
augmentation point post-capture.

This defaults to off because we do not want to auto-include them when
recording from the GTK UI (as we'd spend a bunch of time not showing a
window) but we do want to include them from sysprof-cli as that could
be running on a remote machine/container/vm with different debug URLs.

In the future, that could be improved with a different UI flow though.

Related: #130
This commit is contained in:
Christian Hergert
2025-02-06 22:19:55 -08:00
parent 91c8bc7105
commit 4999ae8598
3 changed files with 121 additions and 32 deletions

View File

@ -553,10 +553,9 @@ Examples:\n\
if (!no_decode)
{
if(enable_debuginfod)
sysprof_profiler_add_instrument (profiler, sysprof_symbols_bundle_new_without_debuginfod ());
else
sysprof_profiler_add_instrument (profiler, sysprof_symbols_bundle_new ());
SysprofInstrument *bundle = sysprof_symbols_bundle_new ();
sysprof_symbols_bundle_set_enable_debuginfod (SYSPROF_SYMBOLS_BUNDLE (bundle), enable_debuginfod);
sysprof_profiler_add_instrument (profiler, g_steal_pointer (&bundle));
}
if (!no_cpu)