- Select manual -

Visual profiler

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.

profile profile.script

function init(self)
    msg.post(".", "acquire_input_focus") 

function on_input(self, action_id, action)
    if action_id == hash("click") and action.pressed then
        msg.post("@system:", "toggle_profile") 
  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.