Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FixFunctionIDForBrokenDotnet ¶ added in v1.1.0
func FixFunctionNamesForScriptingLanguages ¶ added in v1.1.0
FixFunctionNamesForScriptingLanguages modifies the function names in the provided profile to include line numbers. This is a workaround for frontend limitations in rendering line numbers. The function is specifically designed for profiles generated by scripting languages. Note: This function modifies the provided profile in place.
func SpyNameForFunctionNameRewrite ¶ added in v1.1.0
func SpyNameForFunctionNameRewrite() string
Types ¶
type RawProfile ¶
type RawProfile struct {
RawData []byte // Represents raw request body as per ingestion API.
FormDataContentType string // Set optionally, if RawData is multipart form.
// Initializes lazily on handleRawData, if not present.
Profile []byte // Represents raw pprof data.
SampleTypeConfig map[string]*tree.SampleTypeConfig
}
func (*RawProfile) ContentType ¶
func (p *RawProfile) ContentType() string
func (*RawProfile) Parse ¶
func (p *RawProfile) Parse(_ context.Context, _ storage.Putter, _ storage.MetricsExporter, md ingestion.Metadata) error
func (*RawProfile) ParseToPprof ¶ added in v1.1.0
func (p *RawProfile) ParseToPprof(_ context.Context, md ingestion.Metadata) (res *distributormodel.PushRequest, err error)
ParseToPprof is not doing much now. It parses the profile with no processing/splitting, adds labels.
Click to show internal directories.
Click to hide internal directories.