Skip to content

Commit d2c9b27

Browse files
liorgorbDaniel Shaulov
authored andcommitted
After splitting a stack to methods, replace vertical bars with semicolons (our custom async-profiler replaces the semicolons with vertical bars so that burn is able to split by method)
1 parent e81dc9a commit d2c9b27

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

convert/folded.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ func ParseFolded(r io.Reader) types.Profile {
4444
v := line[sep+1:]
4545

4646
stack := strings.Split(s, ";")
47+
for i, _ := range stack {
48+
stack[i] = strings.Replace(stack[i], "|", ";", -1)
49+
}
4750
reverse(stack)
4851

4952
i, err := strconv.Atoi(v)

0 commit comments

Comments
 (0)