- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for FromPProf (0.16 sec)
-
src/cmd/internal/pgo/pprof.go
// intermediate representation. package pgo import ( "errors" "fmt" "internal/profile" "io" "sort" ) // FromPProf parses Profile from a pprof profile. func FromPProf(r io.Reader) (*Profile, error) { p, err := profile.Parse(r) if errors.Is(err, profile.ErrNoData) { // Treat a completely empty file the same as a profile with no // samples: nothing to do.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 27 20:20:01 UTC 2024 - 4K bytes - Viewed (0) -
src/cmd/preprofile/main.go
f, err := os.Open(profileFile) if err != nil { return fmt.Errorf("error opening profile: %w", err) } defer f.Close() r := bufio.NewReader(f) d, err := pgo.FromPProf(r) if err != nil { return fmt.Errorf("error parsing profile: %w", err) } var out *os.File if outputFile == "" { out = os.Stdout } else { out, err = os.Create(outputFile) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 1.9K bytes - Viewed (0)