]> Cypherpunks.ru repositories - gostls13.git/commit
runtime/trace, internal/trace: script to collect canned traces
authorAustin Clements <austin@google.com>
Fri, 28 Oct 2016 14:53:41 +0000 (10:53 -0400)
committerAustin Clements <austin@google.com>
Fri, 28 Oct 2016 17:46:49 +0000 (17:46 +0000)
commite14b02197737a0d7e5eed2856806cf20c85052cf
treef7ab58bd6826a370adef939b5c667a701bee9b7a
parent9a8c69539cbd052e2c4b55496d72ec8407c0af52
runtime/trace, internal/trace: script to collect canned traces

This adds support to the runtime/trace test for saving traces
collected by its tests to disk and a script in internal/trace that
uses this to collect canned traces for the trace test suite. This can
be used to add to the test suite when we introduce a new trace format
version.

Change-Id: Id9ac1ff312235bf02f982fdfff8a827f54035758
Reviewed-on: https://go-review.googlesource.com/32290
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Dmitry Vyukov <dvyukov@google.com>
src/internal/trace/mkcanned.bash [new file with mode: 0755]
src/internal/trace/parser.go
src/runtime/trace/trace_test.go