mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
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:
parent
6fd949a6dc
commit
e80194e31f
14 changed files with 266 additions and 0 deletions
|
|
@ -30,6 +30,7 @@
|
|||
|
||||
#import "os_visionos.h"
|
||||
|
||||
#include "core/profiling/profiling.h"
|
||||
#import "drivers/apple_embedded/godot_app_delegate.h"
|
||||
#import "drivers/apple_embedded/main_utilities.h"
|
||||
#include "main/main.h"
|
||||
|
|
@ -50,6 +51,8 @@ int apple_embedded_main(int argc, char **argv) {
|
|||
char *fargv[64];
|
||||
argc = process_args(argc, argv, fargv);
|
||||
|
||||
godot_init_profiler();
|
||||
|
||||
Error err = Main::setup(fargv[0], argc - 1, &fargv[1], false);
|
||||
|
||||
if (err != OK) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue