diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-08-05 18:33:09 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-08-05 18:33:09 +0000 |
commit | a060b707795cbe24dbb0d787457ae844c28ff860 (patch) | |
tree | 7e3411abb354eee26fa2e206b745cdefcd2f7fd4 /runsc/sandbox | |
parent | ea8980db9334b24052c221b5765b9b9428a6557d (diff) | |
parent | 190b1e6bd4aae56eff3ff846efea38629361b3a9 (diff) |
Merge release-20200804.0-19-g190b1e6bd (automated)
Diffstat (limited to 'runsc/sandbox')
-rw-r--r-- | runsc/sandbox/sandbox.go | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/runsc/sandbox/sandbox.go b/runsc/sandbox/sandbox.go index 2afcc27af..36bb0c9c9 100644 --- a/runsc/sandbox/sandbox.go +++ b/runsc/sandbox/sandbox.go @@ -1012,26 +1012,6 @@ func (s *Sandbox) StopCPUProfile() error { return nil } -// GoroutineProfile writes a goroutine profile to the given file. -func (s *Sandbox) GoroutineProfile(f *os.File) error { - log.Debugf("Goroutine profile %q", s.ID) - conn, err := s.sandboxConnect() - if err != nil { - return err - } - defer conn.Close() - - opts := control.ProfileOpts{ - FilePayload: urpc.FilePayload{ - Files: []*os.File{f}, - }, - } - if err := conn.Call(boot.GoroutineProfile, &opts, nil); err != nil { - return fmt.Errorf("getting sandbox %q goroutine profile: %v", s.ID, err) - } - return nil -} - // BlockProfile writes a block profile to the given file. func (s *Sandbox) BlockProfile(f *os.File) error { log.Debugf("Block profile %q", s.ID) |