fix: reset pendingCallCount before parsing calls= line
This commit is contained in:
parent
47040d50ae
commit
392c0f71aa
1 changed files with 1 additions and 0 deletions
|
|
@ -121,6 +121,7 @@ func Parse(r io.Reader) (*Profile, error) {
|
||||||
pendingCallee = fnTable[alias]
|
pendingCallee = fnTable[alias]
|
||||||
|
|
||||||
case strings.HasPrefix(line, "calls="):
|
case strings.HasPrefix(line, "calls="):
|
||||||
|
pendingCallCount = 0
|
||||||
parts := strings.Fields(line[6:])
|
parts := strings.Fields(line[6:])
|
||||||
if len(parts) > 0 {
|
if len(parts) > 0 {
|
||||||
pendingCallCount, _ = strconv.ParseInt(parts[0], 10, 64)
|
pendingCallCount, _ = strconv.ParseInt(parts[0], 10, 64)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue