Profile library/tool for TIC-80 lua code.
Call profile:start(<name>) and profile:stop(<name>) around code/functions that you want to profile, then call profile:update() from the end of OVR() or TIC() once per frame.
Use the ` key to see profile table in-game. Use the t key to dump the table to the tic-80 console.
LucasM
|
Yooo. Neat! I was making a mini profiler of my own, and someone shared this with me on the discord. I love your functionality. I'm probably gonna share my cart soonish, and if I do I'll probably shout out your LIBPROFILER at the end of my cart if someone needs a more detailed profiler than mine. I really like what you did with this yo.
|