go/src/cmd/internal/pgo/pprof.go

// FromPProf parses Profile from a pprof profile.
func FromPProf(r io.Reader) (*Profile, error) {}

// createNamedEdgeMap builds a map of callsite-callee edge weights from the
// profile-graph.
//
// Caller should ignore the profile if totalWeight == 0.
func createNamedEdgeMap(g *profile.Graph) (edgeMap NamedEdgeMap, totalWeight int64, err error) {}

func sortByWeight(edges []NamedCallEdge, weight map[NamedCallEdge]int64) {}

func postProcessNamedEdgeMap(weight map[NamedCallEdge]int64, weightVal int64) (edgeMap NamedEdgeMap, totalWeight int64, err error) {}