Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InstantProfile ¶
type InstantProfile interface { ProfileMeta() InstantProfileMeta Samples() map[string]*Sample }
func NewScaledInstantProfile ¶
func NewScaledInstantProfile(p InstantProfile, ratio float64) InstantProfile
type InstantProfileMeta ¶
type InstantProfileMeta struct { PeriodType ValueType SampleType ValueType Timestamp int64 Duration int64 Period int64 }
func MetaFromPprof ¶ added in v0.8.0
func MetaFromPprof(p *profile.Profile, sampleIndex int) InstantProfileMeta
type Profile ¶ added in v0.9.0
type Profile struct { Meta InstantProfileMeta FlatSamples map[string]*Sample }
func CopyInstantProfile ¶ added in v0.9.0
func CopyInstantProfile(p InstantProfile) *Profile
func ProfilesFromPprof ¶ added in v0.9.0
func ProfilesFromPprof(ctx context.Context, l log.Logger, s metastore.ProfileMetaStore, p *profile.Profile, normalized bool) ([]*Profile, error)
ProfilesFromPprof extracts a Profile from each sample index included in the pprof profile.
func (*Profile) ProfileMeta ¶ added in v0.9.0
func (fp *Profile) ProfileMeta() InstantProfileMeta
type Sample ¶
type ScaledInstantProfile ¶
type ScaledInstantProfile struct {
// contains filtered or unexported fields
}
func (*ScaledInstantProfile) ProfileMeta ¶
func (p *ScaledInstantProfile) ProfileMeta() InstantProfileMeta
func (*ScaledInstantProfile) Samples ¶
func (p *ScaledInstantProfile) Samples() map[string]*Sample
type StacktraceKey ¶
type StacktraceKey []byte
func MakeStacktraceKey ¶
func MakeStacktraceKey(sample *Sample) StacktraceKey
MakeStacktraceKey generates stacktraceKey to be used as a key for maps.
Click to show internal directories.
Click to hide internal directories.