Support openshift-test profiling like all the other binaries
@@ -20,6 +20,7 @@ import (
"k8s.io/kubernetes/pkg/kubectl/cmd/templates"
e2e "k8s.io/kubernetes/test/e2e/framework"
+ "github.com/openshift/library-go/pkg/serviceability"
"github.com/openshift/origin/pkg/cmd/flagtypes"
"github.com/openshift/origin/pkg/monitor"
testginkgo "github.com/openshift/origin/pkg/test/ginkgo"
@@ -29,6 +30,7 @@ import (
func main() {
logs.InitLogs()
defer logs.FlushLogs()
+ defer serviceability.Profile(os.Getenv("OPENSHIFT_PROFILE")).Stop()
rand.Seed(time.Now().UTC().UnixNano())
