Documentation
¶
Index ¶
- func CollapsedToProfileV1(b []byte, name string, maxNodes int) (*flamebearer.FlamebearerProfile, error)
- func ConverterToFormat(f ConverterFn) string
- func DiffV1(name string, base, diff *flamebearer.FlamebearerProfile, maxNodes int) (flamebearer.FlamebearerProfile, error)
- func JSONToProfileV1(b []byte, name string, _ int) (*flamebearer.FlamebearerProfile, error)
- func PprofToProfileV1(b []byte, name string, maxNodes int) (*flamebearer.FlamebearerProfile, error)
- type ConverterFn
- type Model
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollapsedToProfileV1 ¶ added in v0.9.0
func CollapsedToProfileV1(b []byte, name string, maxNodes int) (*flamebearer.FlamebearerProfile, error)
func ConverterToFormat ¶ added in v0.10.0
func ConverterToFormat(f ConverterFn) string
func DiffV1 ¶ added in v0.10.0
func DiffV1(name string, base, diff *flamebearer.FlamebearerProfile, maxNodes int) (flamebearer.FlamebearerProfile, error)
DiffV1 takes two single V1 profiles and generates a diff V1 profile
func JSONToProfileV1 ¶ added in v0.9.0
func JSONToProfileV1(b []byte, name string, _ int) (*flamebearer.FlamebearerProfile, error)
func PprofToProfileV1 ¶ added in v0.9.0
func PprofToProfileV1(b []byte, name string, maxNodes int) (*flamebearer.FlamebearerProfile, error)
Types ¶
type ConverterFn ¶ added in v0.8.0
type ConverterFn func(b []byte, name string, maxNodes int) (*flamebearer.FlamebearerProfile, error)
type Model ¶ added in v0.10.0
type Model struct {
// Name of the file in which the profile was saved, if any.
// example: pyroscope.server.cpu-2022-01-23T14:31:43Z.json
Filename string `json:"filename"`
// base64-encoded data of the profile, in any of the supported formats
// (currently supported: pprof, Pyroscope JSON and collapsed).
// example: eyJ2ZXJzaW9uIjoxLCJmbGFtZWJlYXJlciI6eyJuYW1lcyI6WyJ0b3RhbCIsImEiLCJjIiwiYiJdLCJsZXZlbHMiOltbMCwzLDAsMF0sWzAsMywwLDFdLFswLDEsMSwzLDAsMiwyLDJdXSwibnVtVGlja3MiOjMsIm1heFNlbGYiOjJ9LCJtZXRhZGF0YSI6eyJmb3JtYXQiOiJzaW5nbGUiLCJzcHlOYW1lIjoic3B5LW5hbWUiLCJzYW1wbGVSYXRlIjoxMCwidW5pdHMiOiJzYW1wbGVzIiwibmFtZSI6Im5hbWUifX0=
// required: true
// minLength: 2
Profile []byte `json:"profile"`
// Type of profile, if known (currently supported: pprof, json, collapsed")
// example: json
Type string `json:"type"`
FileTypeData fileTypeDataModel `json:"fileTypeData"`
}
swagger:model
func (Model) Converter ¶ added in v0.10.0
func (m Model) Converter() (ConverterFn, error)
Converter returns a ConverterFn that converts to FlamebearerProfile and overrides any specified fields
Click to show internal directories.
Click to hide internal directories.