From 38995961dfbbd656f038e107fca75d94a71aa81a Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Mon, 14 Mar 2022 00:44:19 +0100 Subject: Improve `--debug-stringnames` to be more useful - Print all StringNames, not just the top 100. - Print statistics at the end of the list of StringNames, with unreferenced and rarely referenced StringNames. - List the CLI argument in `--help` and shell completion. --- main/main.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'main') diff --git a/main/main.cpp b/main/main.cpp index 0f33d2ced5..89457a0cce 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -348,6 +348,7 @@ void Main::print_help(const char *p_binary) { #if defined(DEBUG_ENABLED) OS::get_singleton()->print(" --debug-collisions Show collision shapes when running the scene.\n"); OS::get_singleton()->print(" --debug-navigation Show navigation polygons when running the scene.\n"); + OS::get_singleton()->print(" --debug-stringnames Print all StringName allocations to stdout when the engine quits.\n"); #endif OS::get_singleton()->print(" --frame-delay Simulate high CPU load (delay each frame by milliseconds).\n"); OS::get_singleton()->print(" --time-scale Force time scale (higher values are faster, 1.0 is normal speed).\n"); -- cgit v1.2.3