...
1
2
3
4
5
6
7
8
9
10
11
12 package main
13
14 import (
15 "internal/trace"
16 "internal/trace/event/go122"
17 testgen "internal/trace/internal/testgen/go122"
18 )
19
20 func main() {
21 testgen.Main(gen)
22 }
23
24 func gen(t *testgen.Trace) {
25 g1 := t.Generation(1)
26
27
28 b0 := g1.Batch(trace.ThreadID(0), 0)
29 b0.Event("ProcStatus", trace.ProcID(0), go122.ProcRunning)
30 b0.Event("GoCreate", trace.GoID(5), testgen.NoStack, testgen.NoStack)
31 b0.Event("GoStart", trace.GoID(5), testgen.Seq(1))
32 b0.Event("GoStop", "whatever", testgen.NoStack)
33 }
34
View as plain text