Versions in this module Expand all Collapse all v0 v0.1.1 Feb 21, 2022 v0.1.0 Feb 21, 2022 Changes in this version + func ParseProfileFrom(r io.Reader) (*pprofProfile.Profile, error) + func ProfilesEqual(pp1, pp2 *pprofProfile.Profile) bool + func SampleAddLabel(s *pprofProfile.Sample, key, valueStr string, valueNum int64) + type ProfileBuilder struct + func NewProfileBuilder(ptyp profile.ProfileType) *ProfileBuilder + func (pb *ProfileBuilder) AddFunction(fn *pprofProfile.Function) + func (pb *ProfileBuilder) AddLocation(loc *pprofProfile.Location) + func (pb *ProfileBuilder) AddMapping(m *pprofProfile.Mapping) + func (pb *ProfileBuilder) AddSample(s *pprofProfile.Sample) + func (pb *ProfileBuilder) Build() (*pprofProfile.Profile, error) + func (pb *ProfileBuilder) IsEmpty() bool + type ProfileParser struct + func NewProfileParser(data []byte) *ProfileParser + func (pr *ProfileParser) ParseProfile() (prof *pprofProfile.Profile, err error) + func (pr *ProfileParser) Read(p []byte) (n int, err error) + func (pr *ProfileParser) Seek(offset int64, whence int) (int64, error) + func (pr *ProfileParser) WriteTo(w io.Writer) (n int64, err error) + type ProfileParserError struct + func (e *ProfileParserError) Code() ProfileParserErrorCode + func (e *ProfileParserError) Error() string + func (e *ProfileParserError) Unwrap() error + type ProfileParserErrorCode string + const ProfileParserErrorProfileEmpty + const ProfileParserErrorUndefined