How to make go trace show every func call?

Solution 1:

go-callvis can be checked as it provides a very high level overview of the Go program using data from call graph and its relations with packages and types.

Typically it runs a pointer analysis to construct the call graph of the program and uses the data to generate output in dot format, which can be rendered with Graphviz tools. High level overview shall be as below.

enter image description here

Reference : https://github.com/ofabry/go-callvis