Skip to Content
defold-typescript libraries
defold (official)

defold/extension-profile-counters

An advanced example native extension that retrieves profiling data at runtime, with the counters available even in release builds. It registers a profile Lua module whose profile.get_properties returns a table of the latest counters.

Lua API not typed — upstream ships no .script_api, so resolve skips it.

  • GitHub: defold/extension-profile-counters — pinned to 7fddaa2
    1. This repo publishes no releases or tags. Add a commit archive URL — for the pinned commit, https://github.com/defold/extension-profile-counters/archive/7fddaa2c251c77952a4cc2e873a75e30212d7c18.zip — to game.project under [project] dependencies, then Fetch Libraries in the Defold editor.
    2. Call profile.get_properties() each update and print the result, as the example project's main.script does.
    3. Expect the regular profiler normally included in Defold to be removed, as upstream notes.