This tool d 6CF5 epends on cmake2.8+, lua5.3+ and FlameGraph
Please check your environment.
Like Perf, this tool can collect the function call stack in lua VM by frequency, and she can output a flamegraph.
install lua5.3.6
mkdir dep && cd dep
curl -R -O http://www.lua.org/ftp/lua-5.3.6.tar.gz
tar zxf lua-5.3.6.tar.gz
cd lua-5.3.6
make linux test
sudo make install
cd ../..
install FlameGraph
git clone https://github.com/Patrick08T/FlameGraph.git
build project
./build.sh
and then, you will get a libluaperf.so in ./bin/debug/ directory
cp ./bin/debug/libluaperf.so ./
lua ./sample/sample.lua
./FlameGraph/flamegraph.pl samling.log > perf.svg