diff options
author | Zach Koopmans <zkoopmans@google.com> | 2020-08-24 13:50:56 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-08-24 13:53:10 -0700 |
commit | 2b0b5e25210ea61c85610404d0eb7dc9383fcd14 (patch) | |
tree | 3070919c2348df819d5dd22836714cc90c224505 /pkg/test | |
parent | ab6c474210cca380e8e6504bb2368b077f50ceae (diff) |
Remove go profiling flag from dockerutil.
Go profiling was removed from runsc debug in a previous change.
PiperOrigin-RevId: 328203826
Diffstat (limited to 'pkg/test')
-rw-r--r-- | pkg/test/dockerutil/dockerutil.go | 1 | ||||
-rw-r--r-- | pkg/test/dockerutil/profile.go | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/pkg/test/dockerutil/dockerutil.go b/pkg/test/dockerutil/dockerutil.go index 952871f95..7027df1a5 100644 --- a/pkg/test/dockerutil/dockerutil.go +++ b/pkg/test/dockerutil/dockerutil.go @@ -60,7 +60,6 @@ var ( // enabled for each run. pprofBlock = flag.Bool("pprof-block", false, "enables block profiling with runsc debug") pprofCPU = flag.Bool("pprof-cpu", false, "enables CPU profiling with runsc debug") - pprofGo = flag.Bool("pprof-go", false, "enables goroutine profiling with runsc debug") pprofHeap = flag.Bool("pprof-heap", false, "enables heap profiling with runsc debug") pprofMutex = flag.Bool("pprof-mutex", false, "enables mutex profiling with runsc debug") ) diff --git a/pkg/test/dockerutil/profile.go b/pkg/test/dockerutil/profile.go index f0396ef24..55f9496cd 100644 --- a/pkg/test/dockerutil/profile.go +++ b/pkg/test/dockerutil/profile.go @@ -63,7 +63,7 @@ type Pprof struct { // MakePprofFromFlags makes a Pprof profile from flags. func MakePprofFromFlags(c *Container) *Pprof { - if !(*pprofBlock || *pprofCPU || *pprofGo || *pprofHeap || *pprofMutex) { + if !(*pprofBlock || *pprofCPU || *pprofHeap || *pprofMutex) { return nil } return &Pprof{ |