Skip to content

Commit

Permalink
fix(pprof): format pyspy stacktraces with filenames - same as rbspy (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
korniltsev authored Jul 9, 2023
1 parent 40e0742 commit 765c328
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/convert/pprof/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func (RbspyFormatter) format(x *tree.Profile, fn *tree.Function, line *tree.Line
}

func StackFrameFormatterForSpyName(spyName string) StackFrameFormatter {
if spyName == "rbspy" {
if spyName == "rbspy" || spyName == "pyspy" {
return RbspyFormatter{}
}
return UnsafeFunctionNameFormatter{}
Expand Down
2 changes: 1 addition & 1 deletion pkg/convert/pprof/streaming/parser_streaming.go
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ func grow[T any](a arenahelper.ArenaWrapper, it []T, n int) []T {
}

func StackFrameFormatterForSpyName(spyName string) StackFormatter {
if spyName == "rbspy" {
if spyName == "rbspy" || spyName == "pyspy" {
return StackFrameFormatterRuby
}
return StackFrameFormatterGo
Expand Down

0 comments on commit 765c328

Please sign in to comment.