runtime/trace: add new package

Move tracing functions from runtime/pprof to the new runtime/trace package.

Fixes #9710

Change-Id: I718bcb2ae3e5959d9f72cab5e6708289e5c8ebd5
Reviewed-on: https://go-review.googlesource.com/12511
Reviewed-by: Russ Cox <rsc@golang.org>
This commit is contained in:
Dmitry Vyukov 2015-07-22 13:09:26 +02:00 committed by Russ Cox
parent 1a99ba55df
commit ae1ea2aa94
9 changed files with 102 additions and 84 deletions

View file

@ -6,7 +6,7 @@
Trace is a tool for viewing trace files.
Trace files can be generated with:
- runtime/pprof.StartTrace
- runtime/trace.Start
- net/http/pprof package
- go test -trace