[Mod] K-Profiler [k_profiler]

Post Reply
User avatar
Skamiz Kazzarch
Member
Posts: 690
Joined: Fri Mar 09, 2018 20:34
GitHub: Skamiz
In-game: Skamiz
Location: la lojbaugag.

[Mod] K-Profiler [k_profiler]

by Skamiz Kazzarch » Post

Code profiling utility. Depends on LuaJIT.

Inspired by jitprofiler. Bringing your graphs directly into Luanti, rather then depending on external tools.
Screenshot from 2025-07-25 09-44-33.png
Screenshot from 2025-07-25 09-44-33.png (20.05 KiB) Viewed 3409 times
Code: MIT
Media: CC0
Depends: -nothing-
Download: https://github.com/Skamiz/k_profiler/ar ... master.zip

Features:
Create collections of profiler samples, either manually from the mods formspec, or automatically from code.
Display them as graphs in a formspec displayed with the chat command: '/k_profiler'.
Zoom in on sections of the graph by clicking on them.
Hover over sections to get more information, like the full path of the function, number of samples, time used and, if sampling precision is set to "line", even the specific line of code.

See the mods readme for a fuller explanation.

Warning: The builtin JIT profiler has issues with sandboxed environments as used by, for example, lua controllers and basic_robots, and may hang the game when encountering such.

Post Reply

Who is online

Users browsing this forum: Bing [Bot], dgleijen and 0 guests