Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ParseUncompressed (0.24 sec)

  1. src/internal/profile/profile.go

    		}
    		data, err := io.ReadAll(gz)
    		if err != nil {
    			return nil, fmt.Errorf("decompressing profile: %v", err)
    		}
    		orig = data
    	}
    
    	p, err := parseUncompressed(orig)
    	if err != nil {
    		return nil, fmt.Errorf("parsing profile: %w", err)
    	}
    
    	if err := p.CheckValid(); err != nil {
    		return nil, fmt.Errorf("malformed profile: %v", err)
    	}
    	return p, nil
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 17:57:40 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  2. src/cmd/vendor/github.com/google/pprof/profile/profile.go

    			p.addLegacyFrameInfo()
    			return p, nil
    		}
    		if err != errUnrecognized {
    			return nil, err
    		}
    	}
    	return nil, errUnrecognized
    }
    
    // ParseUncompressed parses an uncompressed protobuf into a profile.
    func ParseUncompressed(data []byte) (*Profile, error) {
    	if len(data) == 0 {
    		return nil, errNoData
    	}
    	p := &Profile{}
    	if err := unmarshal(data, p); err != nil {
    		return nil, err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  3. src/cmd/vendor/github.com/google/pprof/internal/driver/driver.go

    	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))
    	if err != nil {
    		panic(err)
    	}
    	return p
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 10.8K bytes
    - Viewed (0)
Back to top