- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for WriteUncompressed (0.55 sec)
-
src/cmd/vendor/github.com/google/pprof/profile/profile.go
func (p *Profile) Write(w io.Writer) error { zw := gzip.NewWriter(w) defer zw.Close() _, err := zw.Write(serialize(p)) return err } // WriteUncompressed writes the profile as a marshaled protobuf. func (p *Profile) WriteUncompressed(w io.Writer) error { _, err := w.Write(serialize(p)) return err } // CheckValid tests whether the profile is valid. Checks include, but are // not limited to:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 19:48:28 UTC 2024 - 22.3K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/internal/driver/driver.go
type profileCopier []byte func makeProfileCopier(src *profile.Profile) profileCopier { // Pre-serialize the profile. We will deserialize every time a fresh copy is needed. var buf bytes.Buffer src.WriteUncompressed(&buf) return profileCopier(buf.Bytes()) } // newCopy returns a new copy of the profile. func (c profileCopier) newCopy() *profile.Profile { p, err := profile.ParseUncompressed([]byte(c))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 19:48:28 UTC 2024 - 10.8K bytes - Viewed (0)