go-cachegrind
is a GO library that parses files in cachegrind compatible format, used e.g. by xdebug profiler. This package is mainly developed to parse xdebug profiling files.
go get github.com/windler/go-cachegrind
cg := cachegrind.Parse("path/to/file.cachegrind")
main := cg.GetMainFunction()
totalTime := main.GetMeasurement("Time")
for _, call := range main.GetCalls() {
calledFn := call.GetFunction()
//...
}