Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 1006 Bytes

README.md

File metadata and controls

21 lines (17 loc) · 1006 Bytes

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()
    //... 
}