MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / memoryUsage

Method memoryUsage

source/core/StarLua.cpp:580–582  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

578}
579
580size_t LuaEngine::memoryUsage() const {
581 return (size_t)lua_gc(m_state, LUA_GCCOUNT, 0) * 1024 + lua_gc(m_state, LUA_GCCOUNTB, 0);
582}
583
584LuaNullEnforcer LuaEngine::nullTerminate() {
585 return LuaNullEnforcer(*this);

Callers

nothing calls this directly

Calls 1

lua_gcFunction · 0.85

Tested by

no test coverage detected