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
- Host: GitHub
- URL: https://github.com/defold/extension-profile-counters
- Owner: defold
- License: mit
- Created: 2023-01-31T08:11:47.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-03-13T14:10:14.000Z (about 2 years ago)
- Last Synced: 2025-02-28T05:53:19.672Z (3 months ago)
- Language: C++
- Homepage:
- Size: 15.6 KB
- Stars: 4
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-defold - Profile Counters
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)
```