Add profiler option to SCons builds.

Add `tracy` option to `profiler`. If set, a tracy profiling client will be injected into the Godot binary.

# Conflicts:
#	platform/linuxbsd/godot_linuxbsd.cpp
This commit is contained in:
Lukas Tenbrink
2025-04-01 19:00:42 +02:00
parent 6fd949a6dc
commit e80194e31f
14 changed files with 266 additions and 0 deletions

View File

@ -202,6 +202,14 @@ opts.Add(BoolVariable("use_volk", "Use the volk library to load the Vulkan loade
opts.Add(BoolVariable("accesskit", "Use AccessKit C SDK", True))
opts.Add(("accesskit_sdk_path", "Path to the AccessKit C SDK", ""))
opts.Add(BoolVariable("sdl", "Enable the SDL3 input driver", True))
opts.Add(("profiler_path", "Path to the Profiler framework. Only tracy and perfetto are supported at the moment.", ""))
opts.Add(
BoolVariable(
"profiler_sample_callstack",
"Profile random samples application-wide using a callstack based sampler.",
False,
)
)
# Advanced options
opts.Add(