Hello list,
I want to announce my latest obsession of past three days --
callgraph generator.
Basically it's wrapper over "luac -l". You give program path to
Lua source file. It will compile and process it's bytecode
to generate VM instructions sequences graphs.
Graphs (source file can have several closures, so there can be several
graphs) are stored into plaintext formats (.dot and .tgf) inside
./output/.
Layout and conversion to image can be nicely done by "dot" from
Graphviz suite.
https://github.com/martin-eden/Lua-Callgraph
It's early prototype so I'm interested in your feedback.
-- Martin