Skip to content

windler/go-cachegrind

Repository files navigation

CircleCI Go Report Card codebeat badge

go-cachegrind

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.

Installation

go get github.com/windler/go-cachegrind

Usage

cg := cachegrind.Parse("path/to/file.cachegrind")
main := cg.GetMainFunction()
totalTime := main.GetMeasurement("Time")

for _, call := range main.GetCalls() {
    calledFn := call.GetFunction()
    //... 
}

About

GO package for parsing cachegrind files

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages