aboutsummaryrefslogtreecommitdiff
path: root/builtin/profiler
AgeCommit message (Collapse)Author
2022-12-24Add callback on_mapblocks_changedJude Melton-Houghton
2021-12-19Use defined evaluation order in profilerJude Melton-Houghton
See https://github.com/LuaJIT/LuaJIT/issues/238
2021-03-19Builtin: Translatable join, leave, profiler msgs (#11064)Wuzzy
2021-03-05Translate builtin (#10693)Wuzzy
This PR is the second attempt to translate builtin. Server-sent translation files can be added to `builtin/locale/`, whereas client-side translations depend on gettext.
2021-01-02Add on_deactivate callback for luaentities (#10723)hecks
2020-02-23Profiler: Fix wrong function name for entitiessfan5
2019-08-06Add luacheck to check builtin (#7895)rubenwardy
2019-02-16Fix profiler crash by builtin since eea1fda (#8239)Paul Ouellette
Default to '??' (common Minetest notation) for unknown mods.
2017-10-14Profiler: Fix var args not being passed to callback register functionrubenwardy
Fixes #6517
2017-06-30Create a filesystem abstraction layer for CSM and only allow accessing files ↵red-001
that are scanned into it. (#5965) * Load client-side mods into memory before executing them. This removes the remaining filesystem access that client-sided mods had and it will hopefully make then more secure. * Lua Virtual filesystem: don't load the files into memory just scan the filenames into memory. * Fix the issues with backtrace * fix most of the issues * fix code style. * add a comment
2017-05-06Use a settings object for the main settingsShadowNinja
This unifies the settings APIs. This also unifies the sync and async registration APIs, since the async registration API did not support adding non-functions to the API table.
2016-07-12Builtin/profiler: Replace game profiler (#4245)Tim
Use the setting "profiler.load" to enable profiling. Other settings can be found in settingtypes.txt. * /profiler print [filter] - report statistics to in-game console * /profiler dump [filter] - report statistics to STDOUT and debug.txt * /profiler save [format [filter]] - saves statistics to a file in your worldpath * txt (default) - same treetable format as used by the dump and print commands * csv - ready for spreadsheet import * json - useful for adhoc D3 visualizations * json_pretty - line wrapped and intended json for humans * lua - serialized lua table of the profile-data, for adhoc scripts * /profiler reset - reset all gathered profile data. This can be helpful to discard of any startup measurements that often spike during loading or to get more useful min-values. [filter] allows limiting the output of the data via substring/pattern matching against the modname. Note: Serialized data structures might be subject to change with changed or added measurements. csv might be the most stable, due to flat structure. Changes to the previous version include: * Updated and extended API monitoring * Correct calculation of average (mean) values (undistorted by idleness) * Reduce instrumentation overhead. * Fix crashes related to missing parameters for the future and occasional DIV/0's. * Prevent issues caused by timetravel (overflow, timejump, NTP corrections) * Prevent modname clashes with internal names. * Measure each instrumentation individually and label based on registration order. * Labeling of ABM's and LBM's for easier classification. Giving several ABM's or LBM's the same label will treat them as one. Missing labels will be autogenerated based on name or registration order. * Configurable instrumentation and reporting. Skip e.g. builtin if you don't need it. * Profile the profiler to measure instrumentation overhead.