Kong / kong-build-tools

Build tools to package and release Kong
Apache License 2.0
83 stars 72 forks source link

feat(luajit2): introduce a new built-in function `gcdetails()` for memory analysis #611

Closed ADD-SP closed 1 year ago

ADD-SP commented 1 year ago

Function Prototype: total, estimate = gcdetails()

Returns two values, the first is the total memory used by Lua (KiB), the second is the total memory occupied by alive objects and unswept objects (KiB).

The second value is an estimated value and is not accurate.

Sister PR: https://github.com/Kong/kong/pull/9819