I have a program written in C and Lua. Now, I want to perf this program, print the hot call stack for example.
I don't have any tool or any idea to do this.
function fa()
dosomething()
end
function fb()
fa()
end
int main() {
lua_call("fb")
}
When profiling this program, I hope to print the calling stack like this: 0: fa 1: fb 2: main