Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/defold/extension-lmprof

Lua memory profiler for Defold based on lmprof
https://github.com/defold/extension-lmprof

defold defold-library lua memory-profiler profiler

Last synced: 2 months ago
JSON representation

Lua memory profiler for Defold based on lmprof

Awesome Lists containing this project

README

        

# lmprof native extension for Defold Game Engine

[Original readme](https://github.com/defold/extension-lmprof/blob/master/ORIGINAL_README.md)

Vanilla Lua 5.1 version is availible here: https://github.com/defold/extension-lmprof/tree/lua-5.1

## Installation
To use this library in your Defold project, add the needed version URL to your `game.project` dependencies from [Releases](https://github.com/defold/extension-lmprof/releases)

image

## Example

Add `lmprof.script` component to your main collection.
Specify properties:
image

## Viewer

* Open Google Chrome
* Instruments -> Preformance
* turn on `Memory` checkbox:

image

* Click `Load profile...` and choose your `json`

image

image

Also, use [stat.py](https://github.com/defold/extension-lmprof/blob/master/stat.py) to see calls statistics.

>stat.py my.json

---
If you have any issues, questions or suggestions please [create an issue](https://github.com/defold/extension-lmprof/issues)