BeamMP / BeamMP-Server

Server for the multiplayer mod BeamMP for BeamNG.drive
https://beammp.com
GNU Affero General Public License v3.0
116 stars 49 forks source link

Lua profiling #276

Closed lionkor closed 4 months ago

lionkor commented 4 months ago

Is your feature request related to a problem? Please describe. When I write a plugin, and it seems to slow down how responsive the server is. I can't tell what takes how long!

Describe the solution you'd like I would like to get a quick overview of execution times of my event handlers. I would like those to happen on command (via a console command, for example, in the lua console for my plugin, for example), and via a lua api (like MP.DebugExecutionTimes() or something). Once I have those times, I would like to be able to edit the code of the worst offending/most surprisingly bad performing event handlers to include manual profiling steps, which are added to the same profile.

lionkor commented 4 months ago

whoops, dupe!!!!