From b110b10b35d5eb61ef7ed9b45be4c7af4d05a773 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Tue, 12 Dec 2023 08:06:08 +0400 Subject: [PATCH] meson: Add tracy_symbol_offline_resolve option --- meson.build | 4 ++++ meson_options.txt | 1 + 2 files changed, 5 insertions(+) diff --git a/meson.build b/meson.build index 0cfa677f..6227c81d 100644 --- a/meson.build +++ b/meson.build @@ -102,6 +102,10 @@ if get_option('tracy_libunwind_backtrace') tracy_public_deps += dependency('libunwind') endif +if get_option('tracy_symbol_offline_resolve') + tracy_compile_args += ['-DTRACY_SYMBOL_OFFLINE_RESOLVE'] +endif + tracy_shared_libs = get_option('default_library') == 'shared' if not tracy_shared_libs and get_option('tracy_shared_libs') warning('tracy_shared_libs is set to true, but default_library is set to static. Building static library.') diff --git a/meson_options.txt b/meson_options.txt index a76ad9c0..1da92d08 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -17,6 +17,7 @@ option('tracy_no_system_tracing', type : 'boolean', value : false, description : option('tracy_patchable_nopsleds', type : 'boolean', value : false, description : 'Enable nopsleds for efficient patching by system-level tools (e.g. rr)') option('tracy_timer_fallback', type : 'boolean', value : false, description : 'Use lower resolution timers') option('tracy_libunwind_backtrace', type : 'boolean', value : false, description : 'Use libunwind backtracing where supported') +option('tracy_symbol_offline_resolve', type : 'boolean', value : false, description : 'Instead of full runtime symbol resolution, only resolve the image path and offset to enable offline symbol resolution') option('tracy_delayed_init', type : 'boolean', value : false, description : 'Enable delayed initialization of the library (init on first call)') option('tracy_manual_lifetime', type : 'boolean', value : false, description : 'Enable the manual lifetime management of the profile') option('tracy_fibers', type : 'boolean', value : false, description : 'Enable fibers support')