Skip to content

Commit

Permalink
After splitting a stack to methods, replace vertical bars with semico…
Browse files Browse the repository at this point in the history
…lons (our custom async-profiler replaces the semicolons with vertical bars so that burn is able to split by method)
  • Loading branch information
liorgorb authored and DanielShaulov committed Feb 25, 2021
1 parent e81dc9a commit d2c9b27
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions convert/folded.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ func ParseFolded(r io.Reader) types.Profile {
v := line[sep+1:]

stack := strings.Split(s, ";")
for i, _ := range stack {
stack[i] = strings.Replace(stack[i], "|", ";", -1)
}
reverse(stack)

i, err := strconv.Atoi(v)
Expand Down

0 comments on commit d2c9b27

Please sign in to comment.