-
Notifications
You must be signed in to change notification settings - Fork 605
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: parse jfr to pprof, without intermediate tree (#2355)
- Loading branch information
1 parent
9c8c6c1
commit 5dee87a
Showing
35 changed files
with
944 additions
and
592 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package model | ||
|
||
import ( | ||
v1 "github.com/grafana/pyroscope/api/gen/proto/go/types/v1" | ||
"github.com/grafana/pyroscope/pkg/pprof" | ||
) | ||
|
||
type PushRequest struct { | ||
RawProfileSize int | ||
RawProfileType string // should be set if not pprof, eg jfr | ||
|
||
Series []*ProfileSeries | ||
} | ||
|
||
type ProfileSample struct { | ||
Profile *pprof.Profile | ||
RawProfile []byte // may be nil if the Profile is composed not from pprof ( e.g. jfr) | ||
ID string | ||
} | ||
|
||
type ProfileSeries struct { | ||
Labels []*v1.LabelPair | ||
Samples []*ProfileSample | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.