Update BUILD files reflecting code move to staging
Kubernetes-commit: dc743f7edd1b0104f09ef7dcc1e31c712f850843
This commit is contained in:
parent
5b48717f2d
commit
d35a876e3f
|
@ -30,12 +30,12 @@ var (
|
|||
profileOutput string
|
||||
)
|
||||
|
||||
func addProfilingFlags(flags *pflag.FlagSet) {
|
||||
func AddProfilingFlags(flags *pflag.FlagSet) {
|
||||
flags.StringVar(&profileName, "profile", "none", "Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex)")
|
||||
flags.StringVar(&profileOutput, "profile-output", "profile.pprof", "Name of the file to write the profile to")
|
||||
}
|
||||
|
||||
func initProfiling() error {
|
||||
func InitProfiling() error {
|
||||
switch profileName {
|
||||
case "none":
|
||||
return nil
|
||||
|
@ -63,7 +63,7 @@ func initProfiling() error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func flushProfiling() error {
|
||||
func FlushProfiling() error {
|
||||
switch profileName {
|
||||
case "none":
|
||||
return nil
|
||||
|
|
Loading…
Reference in New Issue