An open API service indexing awesome lists of open source software.

https://github.com/defold/extension-profile-counters

Provides the profile counters in release mode via a Lua interface
https://github.com/defold/extension-profile-counters

Last synced: 3 months ago
JSON representation

Provides the profile counters in release mode via a Lua interface

Awesome Lists containing this project

README

        

# Extension profile counters

This is an advanced example of retrieving some of the profiling data at runtime.

In this example the profile counters are available even in release mode.
This is achieved by using an [app manifest](./game.appmanifest) in order to remove some engine libraries.
(which this extension replaces).

Note!
When using this extension, you remove the regular profiler that is normally included in Defold!

# Script api

This extension provides a lua table with the latest counters through the `profile` namespace:

```Lua
local counters = profile.get_properties()
pprint("Counters", counters)
```