For more in-depth analysis, the web profiler is usually more suitable. See the debug manual for more information.
profile.script
function init(self)
msg.post(".", "acquire_input_focus") -- <1>
end
function on_input(self, action_id, action)
if action_id == hash("touch") and action.pressed then
msg.post("@system:", "toggle_profile") -- <2>
end
end
--[[
1. Make sure this game object's script component gets input from the engine.
2. If user clicks, toggle profiling information.
--]]
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.
GITHUB