[Tarantool-patches] [PATCH luajit v2 4/6] memprof: remove unused arguments
Maxim Kokryashkin
max.kokryashkin at gmail.com
Wed Dec 6 21:55:19 MSK 2023
Both `humanize.profile_info` and `process.form_heap_delta`
don't need the symtab, so the argument can be dropped.
Part of tarantool/tarantool#5994
---
tools/memprof.lua | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/memprof.lua b/tools/memprof.lua
index e23bbf24..955a1327 100644
--- a/tools/memprof.lua
+++ b/tools/memprof.lua
@@ -102,9 +102,9 @@ local function dump(inputfile)
local symbols = symtab.parse(reader)
local events = memprof.parse(reader, symbols)
if not leak_only then
- view.profile_info(events, symbols)
+ view.profile_info(events)
end
- local dheap = process.form_heap_delta(events, symbols)
+ local dheap = process.form_heap_delta(events)
view.leak_info(dheap)
view.aliases(symbols)
-- XXX: The second argument is required to properly close Lua
--
2.43.0
More information about the Tarantool-patches
mailing list