diff options
author | gVisor bot <gvisor-bot@google.com> | 2021-01-05 21:33:03 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-01-05 21:33:03 +0000 |
commit | ba74ccdec1f21b071355a4768d5fc0d5b036d33e (patch) | |
tree | 64ce8912999828dfd55101a17bc2f012a79f0599 /runsc/sandbox | |
parent | cd29587db7a9b3cf298450778a9c335426b5fa00 (diff) | |
parent | b06e5bc5b0913d3740b435d8753a2569220e0a33 (diff) |
Merge release-20201208.0-109-gb06e5bc5b (automated)
Diffstat (limited to 'runsc/sandbox')
-rw-r--r-- | runsc/sandbox/sandbox.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runsc/sandbox/sandbox.go b/runsc/sandbox/sandbox.go index c1d13a58d..cfee9e63d 100644 --- a/runsc/sandbox/sandbox.go +++ b/runsc/sandbox/sandbox.go @@ -991,7 +991,7 @@ func (s *Sandbox) Stacks() (string, error) { } // HeapProfile writes a heap profile to the given file. -func (s *Sandbox) HeapProfile(f *os.File) error { +func (s *Sandbox) HeapProfile(f *os.File, delay time.Duration) error { log.Debugf("Heap profile %q", s.ID) conn, err := s.sandboxConnect() if err != nil { @@ -1001,6 +1001,7 @@ func (s *Sandbox) HeapProfile(f *os.File) error { opts := control.HeapProfileOpts{ FilePayload: urpc.FilePayload{Files: []*os.File{f}}, + Delay: delay, } return conn.Call(boot.HeapProfile, &opts, nil) } |