func CPUProfile(p *Profile) {
	p.addmethod(&cpu{
		filename: "cpu.pprof",
	})
}
CPUProfile enables cpu profiling.
package profile
import (
	"flag"
	"fmt"
	"io"
	"os"
	"runtime"
	"runtime/pprof"
	"runtime/trace"
)
func AllProfiles(p *Profile) {
	p.Configure(
		CPUProfile,
		MemProfile,
		GoroutineProfile,
		ThreadcreationProfile,
		BlockProfile,
		MutexProfile,
		TraceProfile,
	)
}
type method interface {
	Name() string
	SetFlags(f *flag.FlagSet)
	Enabled() bool
	Start() error
	Stop() error
}