diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2022-03-14 00:44:19 +0100 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2022-03-15 18:54:51 +0100 |
commit | 38995961dfbbd656f038e107fca75d94a71aa81a (patch) | |
tree | 6d02e4878717907b58096e106217a5cdc90d7729 /main | |
parent | 7a454842d4bb2c5f96a986df21a97888e1649887 (diff) |
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.
Diffstat (limited to 'main')
-rw-r--r-- | main/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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 <ms> Simulate high CPU load (delay each frame by <ms> milliseconds).\n"); OS::get_singleton()->print(" --time-scale <scale> Force time scale (higher values are faster, 1.0 is normal speed).\n"); |