1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-11-30 04:35:20 +01:00

Builtin profiler: Capture Tracy zones; And small improvements (#16479)

* Feature: Use the builtin profiler to automatically make zones for mod callback functions.
* Doc: Basic doc for builtin profiler, and better `/profiler` chatcommand help.
* Fix: `register_functions` (table of callback register function names), and `entity_instrumentation` is no longer outdated.
* Fix: Builtin profiler output is no longer printed to debug.txt or to file in world with translation escapes.
* Fix: Entity callback name generation used `obj_def.label` (normally non-existing field), now it uses the entity name.
* Small code improvements, like use of new `Settings.get_bool` with default.
This commit is contained in:
DS
2025-09-08 18:27:26 +02:00
committed by GitHub
parent c9d4c33174
commit 69497200f9
7 changed files with 171 additions and 92 deletions

View File

@@ -20,6 +20,7 @@ read_globals = {
"profiler",
"Settings",
"ValueNoise", "ValueNoiseMap",
"tracy",
string = {fields = {"split", "trim"}},
table = {fields = {"copy", "copy_with_metatables", "getn", "indexof", "keyof", "insert_all"}},