aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/trace.go
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2019-04-11 20:23:35 -0700
committerIan Lance Taylor <iant@golang.org>2019-11-19 15:30:58 +0000
commit580337e268a0581bc537e67ca4005b7682be5d66 (patch)
tree50ef07386631cf2bbdd18f392fa98bc1a4a6befb /src/runtime/trace.go
parent8cf5293caa7071601fa90358abdd20a0b787e178 (diff)
downloadgo-580337e268a0581bc537e67ca4005b7682be5d66.tar.xz
runtime, time: remove old timer code
Updates #6239 Updates #27707 Change-Id: I65e6471829c9de4677d3ac78ef6cd7aa0a1fc4cb Reviewed-on: https://go-review.googlesource.com/c/go/+/171884 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Michael Knyszek <mknyszek@google.com> Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
Diffstat (limited to 'src/runtime/trace.go')
-rw-r--r--src/runtime/trace.go9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/runtime/trace.go b/src/runtime/trace.go
index 65d9a38052..9aa9facabe 100644
--- a/src/runtime/trace.go
+++ b/src/runtime/trace.go
@@ -54,7 +54,7 @@ const (
traceEvGoInSyscall = 32 // denotes that goroutine is in syscall when tracing starts [timestamp, goroutine id]
traceEvHeapAlloc = 33 // memstats.heap_live change [timestamp, heap_alloc]
traceEvNextGC = 34 // memstats.next_gc change [timestamp, next_gc]
- traceEvTimerGoroutine = 35 // denotes timer goroutine [timer goroutine id]
+ traceEvTimerGoroutine = 35 // not currently used; previously denoted timer goroutine [timer goroutine id]
traceEvFutileWakeup = 36 // denotes that the previous wakeup of this goroutine was futile [timestamp]
traceEvString = 37 // string dictionary entry [ID, length, string]
traceEvGoStartLocal = 38 // goroutine starts running on the same P as the last event [timestamp, goroutine id]
@@ -416,13 +416,6 @@ func ReadTrace() []byte {
var data []byte
data = append(data, traceEvFrequency|0<<traceArgCountShift)
data = traceAppend(data, uint64(freq))
- for i := range timers {
- tb := &timers[i]
- if tb.gp != nil {
- data = append(data, traceEvTimerGoroutine|0<<traceArgCountShift)
- data = traceAppend(data, uint64(tb.gp.goid))
- }
- }
// This will emit a bunch of full buffers, we will pick them up
// on the next iteration.
trace.stackTab.dump()