Skip to content

Commit 7e0d04b

Browse files
committed
runtime: fix cpu sample comment
1 parent 2da8a55 commit 7e0d04b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/internal/trace/parser.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1078,7 +1078,7 @@ const (
10781078
EvUserTaskEnd = 46 // end of task [timestamp, internal task id, stack]
10791079
EvUserRegion = 47 // trace.WithRegion [timestamp, internal task id, mode(0:start, 1:end), stack, name string]
10801080
EvUserLog = 48 // trace.Log [timestamp, internal id, key string id, stack, value string]
1081-
EvCPUSample = 49 // CPU profiling sample [timestamp, stack, real timestamp, real P id (-1 when absent), goroutine id]
1081+
EvCPUSample = 49 // CPU profiling sample [timestamp, real timestamp, real P id (-1 when absent), goroutine id, stack]
10821082
EvCount = 50
10831083
)
10841084

src/runtime/trace.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const (
7070
traceEvUserTaskEnd = 46 // end of a task [timestamp, internal task id, stack]
7171
traceEvUserRegion = 47 // trace.WithRegion [timestamp, internal task id, mode(0:start, 1:end), stack, name string]
7272
traceEvUserLog = 48 // trace.Log [timestamp, internal task id, key string id, stack, value string]
73-
traceEvCPUSample = 49 // CPU profiling sample [timestamp, stack, real timestamp, real P id (-1 when absent), goroutine id]
73+
traceEvCPUSample = 49 // CPU profiling sample [timestamp, real timestamp, real P id (-1 when absent), goroutine id, stack]
7474
traceEvCount = 50
7575
// Byte is used but only 6 bits are available for event type.
7676
// The remaining 2 bits are used to specify the number of arguments.

0 commit comments

Comments
 (0)