restic/vendor/github.com/pkg/profile/trace_test.go

9 lines
202 B
Go
Raw Normal View History

2017-07-23 12:24:45 +00:00
package profile_test
import "github.com/pkg/profile"
func ExampleTraceProfile() {
// use execution tracing, rather than the default cpu profiling.
defer profile.Start(profile.TraceProfile).Stop()
}