2
0
mirror of https://github.com/wolfpld/tracy synced 2026-01-19 04:52:09 +00:00

TRACY_CALLSTACK is not boolean.

This commit is contained in:
Bartosz Taudul
2025-11-03 16:31:16 +01:00
parent d413e2bb51
commit 9a27779d56
2 changed files with 3 additions and 3 deletions

View File

@@ -17,8 +17,8 @@ if get_option('on_demand')
tracy_common_args += ['-DTRACY_ON_DEMAND']
endif
if get_option('callstack')
tracy_common_args += ['-DTRACY_CALLSTACK']
if get_option('callstack') > 0
tracy_common_args += ['-DTRACY_CALLSTACK='+get_option('callstack').to_string()]
endif
if get_option('no_callstack')

View File

@@ -1,6 +1,6 @@
option('tracy_enable', type : 'boolean', value : true, description : 'Enable profiling', yield: true)
option('on_demand', type : 'boolean', value : false, description : 'On-demand profiling')
option('callstack', type : 'boolean', value : false, description : 'Enfore callstack collection for tracy regions')
option('callstack', type : 'integer', value : 0, description : 'Enforce callstack collection for tracy zones x frames deep')
option('no_callstack', type : 'boolean', value : false, description : 'Disable all callstack related functionality')
option('no_callstack_inlines', type : 'boolean', value : false, description : 'Disables the inline functions in callstacks')
option('only_localhost', type : 'boolean', value : false, description : 'Only listen on the localhost interface')