code: func Parse(r io.Reader) (*Profile, error) {
  	data, err := ioutil.ReadAll(r)
  	if err != nil {
  		return nil, err
  	}
  	return ParseData(data)
  }
docs: // Parse parses a profile and checks for its validity. The input
  // may be a gzip-compressed encoded protobuf or one of many legacy
  // profile formats which may be unsupported in the future.