# leinlin/Miku-LuaProfiler

Repository: https://github.com/leinlin/Miku-LuaProfiler
Canonical: https://ross.abutalabs.com/products/miku-luaprofiler
Language: C#
License: Apache-2.0
License Family: permissive
Topics: lua, profiler, unity, xlua
Last push: 2026-01-05T09:07:22+00:00

## Health v2 (maintenance only)
Score: 50/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 60, release rhythm 8, longevity 100
- inputs: {"age_days": 2844, "days_push": 240, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2015, forks 457 (observed 2026-08-28T04:06:05.473002+00:00)

## What it is
A Lua profiler plugin for Unity that instruments xLua-based Lua code to report per-function CPU time and GC memory usage. It works in the Unity editor (local mode) and on Android devices (remote mode) via a native hook into the Lua library.

## Use cases
- profile lua script performance in unity games
- find lua functions causing high gc memory
- measure per-function lua execution time per frame
- debug lua memory leaks in xlua projects
- profile lua on android device from unity editor
- compare lua gc vs mono gc allocations

## When to choose
- you use xLua or another Lua VM inside a Unity project and need function-level profiling
- you need to profile Lua performance on Android devices remotely
- you want a free, editor-integrated alternative to commercial Unity profilers for Lua

## When to avoid
- your project does not use Lua scripting
- you need iOS profiling support (still in progress)
- you need a general-purpose C# or native code profiler

## Facets
- artifact type: plugin
- maturity: active
- function: monitoring, benchmarking, developer-tools
- domain: performance, developer-tools
- platform: windows, game-engine, lua
- tags: lua-profiler, unity-plugin, xlua, memory-profiling, game-profiling, game-development, macos, android

## Member repositories
- leinlin/Miku-LuaProfiler (main) score 50

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:05.473002+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:00:43.811274+00:00, confidence not recorded.
  - readme: https://github.com/leinlin/Miku-LuaProfiler (fetched 2026-08-28T04:06:05.473002+00:00, sha ad083a6b6cc5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
