Here’s my version of a Solar2D profiler in Lua:
Provides two modes, horizontal and vertical. The latter is draggable, but both can be positioned via x/y properties.
Helps keep an eye on the usual stuff (fps, texture binds, shader binds, triangles, draw calls, and memory usage for Lua and textures.)
Could probably use customization at a future time.
To use it just place sph.lua in your project folder and require it.
local sph = require("sph")
Use F2 to show/hide or F3 to toggle mode. These keys can be reassigned using sph.setConfig({}) (see API in the repo)
Happy profiling!