github.com/angenalZZZ/gofunc@v0.0.0-20210507121333-48ff1be3917b/profile/trace_test.go (about)

     1  package profile_test
     2  
     3  import "github.com/angenalZZZ/gofunc/profile"
     4  
     5  func ExampleTraceProfile() {
     6  	// use execution tracing, rather than the default cpu profiling.
     7  	defer profile.Start(profile.TraceProfile).Stop()
     8  }