
Use godeps to vendor dependencies and the normal go toolchain, with GO15VENDOREXPERIMENT=1 set to properly vendor dependencies for reproducible builds.
12 lines
231 B
Go
12 lines
231 B
Go
package profile_test
|
|
|
|
import (
|
|
"github.com/davecheney/profile"
|
|
)
|
|
|
|
func ExampleStart() {
|
|
// start a simple CPU profile and register
|
|
// a defer to Stop (flush) the profiling data.
|
|
defer profile.Start(profile.CPUProfile).Stop()
|
|
}
|