diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2015-03-10 19:40:09 +0300 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2015-03-11 12:53:24 +0000 |
| commit | 7b0c73aa28f4b06f7901e9e0400b123f731655de (patch) | |
| tree | 03d1e745f00c0adcd4f7d731d0f91b9d0cb793e6 /src/runtime/pprof/trace_stack_test.go | |
| parent | 9d332a8324dbbfaafceffaf9ad765c6d8d083450 (diff) | |
| download | go-7b0c73aa28f4b06f7901e9e0400b123f731655de.tar.xz | |
cmd/trace: move goroutine analysis code to internal/trace
This allows to test goroutine analysis code in runtime/pprof tests.
Also fix a nil-deref crash in goroutine analysis code that happens on runtime/pprof tests.
Change-Id: Id7884aa29f7fe4a8d7042482a86fe434e030461e
Reviewed-on: https://go-review.googlesource.com/7301
Run-TryBot: Dmitry Vyukov <dvyukov@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Andrew Gerrand <adg@golang.org>
Diffstat (limited to 'src/runtime/pprof/trace_stack_test.go')
| -rw-r--r-- | src/runtime/pprof/trace_stack_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/pprof/trace_stack_test.go b/src/runtime/pprof/trace_stack_test.go index ef55d52610..edb0a2438b 100644 --- a/src/runtime/pprof/trace_stack_test.go +++ b/src/runtime/pprof/trace_stack_test.go @@ -122,7 +122,7 @@ func TestTraceSymbolize(t *testing.T) { wp.Write(data[:]) StopTrace() - events, err := trace.Parse(buf) + events, _, err := parseTrace(buf) if err != nil { t.Fatalf("failed to parse trace: %v", err) } |
