Skip to content

Commit 78d9194

Browse files
committed
Merge pull request #113557 from bruvzg/test_prof_clean
Fix profiler cleanup with `--test`.
2 parents 877b113 + 22daf78 commit 78d9194

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main/main.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,14 @@ class Main {
9393
bool run_test = false; \
9494
int return_code = Main::test_entrypoint(argc, argv, run_test); \
9595
if (run_test) { \
96+
godot_cleanup_profiler(); \
9697
return return_code; \
9798
}
9899

99100
#define TEST_MAIN_PARAM_OVERRIDE(argc, argv) \
100101
bool run_test = false; \
101102
int return_code = Main::test_entrypoint(argc, argv, run_test); \
102103
if (run_test) { \
104+
godot_cleanup_profiler(); \
103105
return return_code; \
104106
}

0 commit comments

Comments
 (0)