Skip to content

Commit 02d8ebd

Browse files
subtle-bytegopherbot
authored andcommitted
runtime: fix cpu sample comment
Fixes #58327 Change-Id: I15593e6ee42e04f2de13804ef26e0e66a2307db0 GitHub-Last-Rev: 7e0d04b GitHub-Pull-Request: #58338 Reviewed-on: https://go-review.googlesource.com/c/go/+/465335 Reviewed-by: Michael Knyszek <[email protected]> Run-TryBot: Michael Knyszek <[email protected]> Auto-Submit: Michael Knyszek <[email protected]> Reviewed-by: David Chase <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
1 parent 67d8916 commit 02d8ebd

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)