Skip to content

Commit 750789f

Browse files
felixgegopherbot
authored andcommitted
internal/trace/internal/testgen: fix missing stacks nframes arg
Change-Id: I6a6a6964c9c1322bfe289394d5d3937d1f7097bb Reviewed-on: https://go-review.googlesource.com/c/go/+/694616 Reviewed-by: Michael Knyszek <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: David Chase <[email protected]> Auto-Submit: Michael Knyszek <[email protected]>
1 parent 889ab74 commit 750789f

File tree

1 file changed

+1
-1
lines changed
  • src/internal/trace/internal/testgen

1 file changed

+1
-1
lines changed

src/internal/trace/internal/testgen/trace.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ func (g *Generation) writeEventsTo(tw *raw.TextWriter) {
295295
b.RawEvent(tracev2.EvStacks, nil)
296296
for stk, id := range g.stacks {
297297
stk := stk.stk[:stk.len]
298-
args := []uint64{id}
298+
args := []uint64{id, uint64(len(stk))}
299299
for _, f := range stk {
300300
args = append(args, f.PC, g.String(f.Func), g.String(f.File), f.Line)
301301
}

0 commit comments

Comments
 (0)