This example shows the on-screen profiler. It displays useful runtime information.
For more in-depth analysis, the web profiler is usually more suitable. See the debug manual for more information.
function init(self) msg.post(".", "acquire_input_focus") end function on_input(self, action_id, action) if action_id == hash("click") and action.pressed then msg.post("@system:", "toggle_profile") end end
If you want to play with these examples, you can get the project on Github.
Do you want to see more examples? Why not write a few yourself and submit a pull request? We love contributions.