Skip to content

Commit f833159

Browse files
committedJul 24, 2016
Update minetest.conf.example and the settings translation file
1 parent 2ba8ad1 commit f833159

File tree

2 files changed

+87
-18
lines changed

2 files changed

+87
-18
lines changed
 

‎minetest.conf.example

+61-12
Original file line numberDiff line numberDiff line change
@@ -973,18 +973,6 @@
973973
# type: enum values: legacy, log, error
974974
# deprecated_lua_api_handling = legacy
975975

976-
# Useful for mod developers.
977-
# type: bool
978-
# mod_profiling = false
979-
980-
# Detailed mod profile data. Useful for mod developers.
981-
# type: bool
982-
# detailed_profiling = false
983-
984-
# Profiler data print interval. 0 = disable. Useful for developers.
985-
# type: int
986-
# profiler_print_interval = 0
987-
988976
# Number of extra blocks that can be loaded by /clearobjects at once.
989977
# This is a trade-off between sqlite transaction overhead and
990978
# memory consumption (4096=100MB, as a rule of thumb).
@@ -1476,6 +1464,63 @@
14761464
# type: string
14771465
# secure.http_mods =
14781466

1467+
## Advanced
1468+
1469+
### Profiling
1470+
1471+
# Load the game profiler to collect game profiling data.
1472+
# Provides a /profiler command to access the compiled profile.
1473+
# Useful for mod developers and server operators.
1474+
# type: bool
1475+
# profiler.load = false
1476+
1477+
# The default format in which profiles are being saved,
1478+
# when calling `/profiler save [format]` without format.
1479+
# type: enum values: txt, csv, lua, json, json_pretty
1480+
# profiler.default_report_format = txt
1481+
1482+
# The file path relative to your worldpath in which profiles will be saved to.
1483+
#
1484+
# type: string
1485+
# profiler.report_path = ""
1486+
1487+
#### Instrumentation
1488+
1489+
# Instrument the methods of entities on registration.
1490+
# type: bool
1491+
# instrument.entity = true
1492+
1493+
# Instrument the action function of Active Block Modifiers on registration.
1494+
# type: bool
1495+
# instrument.abm = true
1496+
1497+
# Instrument the action function of Loading Block Modifiers on registration.
1498+
# type: bool
1499+
# instrument.lbm = true
1500+
1501+
# Instrument chatcommands on registration.
1502+
# type: bool
1503+
# instrument.chatcommand = true
1504+
1505+
# Instrument global callback functions on registration.
1506+
# (anything you pass to a minetest.register_*() function)
1507+
# type: bool
1508+
# instrument.global_callback = true
1509+
1510+
##### Advanced
1511+
1512+
# Instrument builtin.
1513+
# This is usually only needed by core/builtin contributors
1514+
# type: bool
1515+
# instrument.builtin = false
1516+
1517+
# Have the profiler instrument itself:
1518+
# * Instrument an empty function.
1519+
# This estimates the overhead, that instrumentation is adding (+1 function call).
1520+
# * Instrument the sampler being used to update the statistics.
1521+
# type: bool
1522+
# instrument.profiler = false
1523+
14791524
#
14801525
# Client and Server
14811526
#
@@ -1548,3 +1593,7 @@
15481593
# type: string
15491594
# modstore_details_url = https://forum.minetest.net/mmdb/mod/*/
15501595

1596+
# Print the engine's profiling data in regular intervals (in seconds). 0 = disable. Useful for developers.
1597+
# type: int
1598+
# profiler_print_interval = 0
1599+

‎src/settings_translation_file.cpp

+26-6
Original file line numberDiff line numberDiff line change
@@ -405,12 +405,6 @@ fake_function() {
405405
gettext("Advanced");
406406
gettext("Deprecated Lua API handling");
407407
gettext("Handling for deprecated lua api calls:\n- legacy: (try to) mimic old behaviour (default for release).\n- log: mimic and log backtrace of deprecated call (default for debug).\n- error: abort on usage of deprecated call (suggested for mod developers).");
408-
gettext("Mod profiling");
409-
gettext("Useful for mod developers.");
410-
gettext("Detailed mod profiling");
411-
gettext("Detailed mod profile data. Useful for mod developers.");
412-
gettext("Profiling print interval");
413-
gettext("Profiler data print interval. 0 = disable. Useful for developers.");
414408
gettext("Max. clearobjects extra blocks");
415409
gettext("Number of extra blocks that can be loaded by /clearobjects at once.\nThis is a trade-off between sqlite transaction overhead and\nmemory consumption (4096=100MB, as a rule of thumb).");
416410
gettext("Unload unused server data");
@@ -600,6 +594,30 @@ fake_function() {
600594
gettext("Comma-separated list of trusted mods that are allowed to access insecure\nfunctions even when mod security is on (via request_insecure_environment()).");
601595
gettext("HTTP Mods");
602596
gettext("Comma-seperated list of mods that are allowed to access HTTP APIs, which\nallow them to upload and download data to/from the internet.");
597+
gettext("Advanced");
598+
gettext("Profiling");
599+
gettext("Load the game profiler");
600+
gettext("Load the game profiler to collect game profiling data.\nProvides a /profiler command to access the compiled profile.\nUseful for mod developers and server operators.");
601+
gettext("Default report format");
602+
gettext("The default format in which profiles are being saved,\nwhen calling `/profiler save [format]` without format.");
603+
gettext("Report path");
604+
gettext("The file path relative to your worldpath in which profiles will be saved to.\n");
605+
gettext("Instrumentation");
606+
gettext("Entity methods");
607+
gettext("Instrument the methods of entities on registration.");
608+
gettext("Active Block Modifiers");
609+
gettext("Instrument the action function of Active Block Modifiers on registration.");
610+
gettext("Loading Block Modifiers");
611+
gettext("Instrument the action function of Loading Block Modifiers on registration.");
612+
gettext("Chatcommands");
613+
gettext("Instrument chatcommands on registration.");
614+
gettext("Global callbacks");
615+
gettext("Instrument global callback functions on registration.\n(anything you pass to a minetest.register_*() function)");
616+
gettext("Advanced");
617+
gettext("Builtin");
618+
gettext("Instrument builtin.\nThis is usually only needed by core/builtin contributors");
619+
gettext("Profiler");
620+
gettext("Have the profiler instrument itself:\n* Instrument an empty function.\nThis estimates the overhead, that instrumentation is adding (+1 function call).\n* Instrument the sampler being used to update the statistics.");
603621
gettext("Client and Server");
604622
gettext("Player name");
605623
gettext("Name of the player.\nWhen running a server, clients connecting with this name are admins.\nWhen starting from the main menu, this is overridden.");
@@ -625,4 +643,6 @@ fake_function() {
625643
gettext("Modstore download URL");
626644
gettext("Modstore mods list URL");
627645
gettext("Modstore details URL");
646+
gettext("Engine profiling data print interval");
647+
gettext("Print the engine's profiling data in regular intervals (in seconds). 0 = disable. Useful for developers.");
628648
}

0 commit comments

Comments
 (0)
Please sign in to comment.