summaryrefslogtreecommitdiff
path: root/src/runtime/trace/example_test.go
Commit message (Collapse)AuthorAgeFilesLines
* runtime/trace: add example about trace.Start/StopAndré Carvalho2017-08-291-0/+39
This commit adds an example to the runtime/trace package on how to use the trace.Start and trace.Stop functions to trace the execution of a Go program and write its trace output to a file. Change-Id: Idf920398f1c3b9d185af9df5ce9293f2361db022 Reviewed-on: https://go-review.googlesource.com/51170 Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>