mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
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:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user