...
Package pprof
Package pprof provides minimalistic routines for extracting
information from profiles.
func TotalTime(data []byte) (total time.Duration, err error)
TotalTime parses the profile data and returns the accumulated time.
The input should not be gzipped.