mirror of
https://github.com/golang/go.git
synced 2025-10-19 11:03:18 +00:00
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 <mknyszek@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: David Chase <drchase@google.com> Auto-Submit: Michael Knyszek <mknyszek@google.com>
This commit is contained in:
parent
889ab74169
commit
750789fab7
1 changed files with 1 additions and 1 deletions
|
@ -295,7 +295,7 @@ func (g *Generation) writeEventsTo(tw *raw.TextWriter) {
|
|||
b.RawEvent(tracev2.EvStacks, nil)
|
||||
for stk, id := range g.stacks {
|
||||
stk := stk.stk[:stk.len]
|
||||
args := []uint64{id}
|
||||
args := []uint64{id, uint64(len(stk))}
|
||||
for _, f := range stk {
|
||||
args = append(args, f.PC, g.String(f.Func), g.String(f.File), f.Line)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue