Documentation
¶
Index ¶
- Constants
- func FilterProfileData(ctx context.Context, tracer trace.Tracer, p *profile.Profile, ...) (*profile.Profile, int64)
- func GenerateCallgraph(ctx context.Context, p *profile.Profile) (*querypb.Callgraph, error)
- func GenerateFlamegraphFlat(ctx context.Context, tracer trace.Tracer, p *profile.Profile) (*pb.Flamegraph, error)
- func GenerateFlamegraphTable(ctx context.Context, tracer trace.Tracer, p *profile.Profile, ...) (*querypb.Flamegraph, error)
- func GenerateFlatPprof(ctx context.Context, ip *parcaprofile.Profile) (*profile.Profile, error)
- func GenerateTopTable(ctx context.Context, p *parcaprofile.Profile) (*pb.Top, error)
- func RenderReport(ctx context.Context, tracer trace.Tracer, p *profile.Profile, ...) (*pb.QueryResponse, error)
- func TrimFlamegraph(ctx context.Context, tracer trace.Tracer, graph *querypb.Flamegraph, ...) *querypb.Flamegraph
- type ColumnQueryAPI
- func (q *ColumnQueryAPI) Labels(ctx context.Context, req *pb.LabelsRequest) (*pb.LabelsResponse, error)
- func (q *ColumnQueryAPI) ProfileTypes(ctx context.Context, req *pb.ProfileTypesRequest) (*pb.ProfileTypesResponse, error)
- func (q *ColumnQueryAPI) Query(ctx context.Context, req *pb.QueryRequest) (*pb.QueryResponse, error)
- func (q *ColumnQueryAPI) QueryRange(ctx context.Context, req *pb.QueryRangeRequest) (*pb.QueryRangeResponse, error)
- func (q *ColumnQueryAPI) ShareProfile(ctx context.Context, req *pb.ShareProfileRequest) (*pb.ShareProfileResponse, error)
- func (q *ColumnQueryAPI) Values(ctx context.Context, req *pb.ValuesRequest) (*pb.ValuesResponse, error)
- type FilteredProfile
- type FlamegraphChildren
- type FlamegraphIterator
- func (fgi *FlamegraphIterator) At() *querypb.FlamegraphNode
- func (fgi *FlamegraphIterator) AtParent() *querypb.FlamegraphNode
- func (fgi *FlamegraphIterator) HasMore() bool
- func (fgi *FlamegraphIterator) NextChild() bool
- func (fgi *FlamegraphIterator) StepInto() bool
- func (fgi *FlamegraphIterator) StepUp()
- type LocationStack
- type Locations
- type Querier
- type TableGetter
- type TreeStack
- type TreeStackEntry
Constants ¶
View Source
const (
NodeCutOffFraction = float32(0.005)
)
Variables ¶
This section is empty.
Functions ¶
func FilterProfileData ¶ added in v0.17.0
func GenerateCallgraph ¶ added in v0.13.0
func GenerateFlamegraphFlat ¶ added in v0.7.0
func GenerateFlamegraphTable ¶ added in v0.14.0
func GenerateFlatPprof ¶ added in v0.7.0
func GenerateTopTable ¶ added in v0.8.0
func RenderReport ¶ added in v0.17.0
func TrimFlamegraph ¶ added in v0.16.0
func TrimFlamegraph(ctx context.Context, tracer trace.Tracer, graph *querypb.Flamegraph, threshold float32) *querypb.Flamegraph
Types ¶
type ColumnQueryAPI ¶ added in v0.11.0
type ColumnQueryAPI struct {
pb.UnimplementedQueryServiceServer
// contains filtered or unexported fields
}
ColumnQueryAPI is the read api interface for parca It implements the proto/query/query.proto APIServer interface.
func NewColumnQueryAPI ¶ added in v0.11.0
func NewColumnQueryAPI( logger log.Logger, tracer trace.Tracer, shareClient sharepb.ShareServiceClient, querier Querier, ) *ColumnQueryAPI
func (*ColumnQueryAPI) Labels ¶ added in v0.11.0
func (q *ColumnQueryAPI) Labels(ctx context.Context, req *pb.LabelsRequest) (*pb.LabelsResponse, error)
Labels issues a labels request against the storage.
func (*ColumnQueryAPI) ProfileTypes ¶ added in v0.11.0
func (q *ColumnQueryAPI) ProfileTypes(ctx context.Context, req *pb.ProfileTypesRequest) (*pb.ProfileTypesResponse, error)
Types returns the available types of profiles.
func (*ColumnQueryAPI) Query ¶ added in v0.11.0
func (q *ColumnQueryAPI) Query(ctx context.Context, req *pb.QueryRequest) (*pb.QueryResponse, error)
Query issues an instant query against the storage.
func (*ColumnQueryAPI) QueryRange ¶ added in v0.11.0
func (q *ColumnQueryAPI) QueryRange(ctx context.Context, req *pb.QueryRangeRequest) (*pb.QueryRangeResponse, error)
QueryRange issues a range query against the storage.
func (*ColumnQueryAPI) ShareProfile ¶ added in v0.12.0
func (q *ColumnQueryAPI) ShareProfile(ctx context.Context, req *pb.ShareProfileRequest) (*pb.ShareProfileResponse, error)
func (*ColumnQueryAPI) Values ¶ added in v0.11.0
func (q *ColumnQueryAPI) Values(ctx context.Context, req *pb.ValuesRequest) (*pb.ValuesResponse, error)
Values issues a values request against the storage.
type FilteredProfile ¶ added in v0.17.0
type FlamegraphChildren ¶ added in v0.16.0
type FlamegraphChildren []*querypb.FlamegraphNode
func (FlamegraphChildren) Cumulative ¶ added in v0.16.0
func (n FlamegraphChildren) Cumulative() int64
func (FlamegraphChildren) Diff ¶ added in v0.16.0
func (n FlamegraphChildren) Diff() int64
type FlamegraphIterator ¶ added in v0.7.0
type FlamegraphIterator struct {
// contains filtered or unexported fields
}
func NewFlamegraphIterator ¶ added in v0.7.0
func NewFlamegraphIterator(fgRoot *querypb.FlamegraphNode) *FlamegraphIterator
func (*FlamegraphIterator) At ¶ added in v0.7.0
func (fgi *FlamegraphIterator) At() *querypb.FlamegraphNode
func (*FlamegraphIterator) AtParent ¶ added in v0.17.0
func (fgi *FlamegraphIterator) AtParent() *querypb.FlamegraphNode
func (*FlamegraphIterator) HasMore ¶ added in v0.7.0
func (fgi *FlamegraphIterator) HasMore() bool
func (*FlamegraphIterator) NextChild ¶ added in v0.7.0
func (fgi *FlamegraphIterator) NextChild() bool
func (*FlamegraphIterator) StepInto ¶ added in v0.7.0
func (fgi *FlamegraphIterator) StepInto() bool
func (*FlamegraphIterator) StepUp ¶ added in v0.7.0
func (fgi *FlamegraphIterator) StepUp()
type LocationStack ¶ added in v0.7.0
func (*LocationStack) IsEmpty ¶ added in v0.7.0
func (s *LocationStack) IsEmpty() bool
func (*LocationStack) Peek ¶ added in v0.7.0
func (s *LocationStack) Peek() *profile.Location
func (*LocationStack) Push ¶ added in v0.7.0
func (s *LocationStack) Push(e *profile.Location)
func (*LocationStack) Size ¶ added in v0.7.0
func (s *LocationStack) Size() int
func (*LocationStack) ToLocationStacktrace ¶ added in v0.7.0
func (s *LocationStack) ToLocationStacktrace() []*profile.Location
type Querier ¶ added in v0.13.0
type Querier interface {
Labels(ctx context.Context, match []string, start, end time.Time) ([]string, error)
Values(ctx context.Context, labelName string, match []string, start, end time.Time) ([]string, error)
QueryRange(ctx context.Context, query string, startTime, endTime time.Time, step time.Duration, limit uint32) ([]*pb.MetricsSeries, error)
ProfileTypes(ctx context.Context) ([]*pb.ProfileType, error)
QuerySingle(ctx context.Context, query string, time time.Time) (*profile.Profile, error)
QueryMerge(ctx context.Context, query string, start, end time.Time) (*profile.Profile, error)
}
type TableGetter ¶ added in v0.14.0
type TableGetter interface {
Strings() []string
GetLocation(index uint32) *metastorev1alpha1.Location
GetFunction(index uint32) *metastorev1alpha1.Function
}
type TreeStack ¶ added in v0.7.0
type TreeStack []*TreeStackEntry
func (*TreeStack) Peek ¶ added in v0.7.0
func (s *TreeStack) Peek() *TreeStackEntry
func (*TreeStack) Pop ¶ added in v0.7.0
func (s *TreeStack) Pop() (*TreeStackEntry, bool)
func (*TreeStack) Push ¶ added in v0.7.0
func (s *TreeStack) Push(e *TreeStackEntry)
type TreeStackEntry ¶ added in v0.7.0
type TreeStackEntry struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.