summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry
diff options
context:
space:
mode:
authorDean Deng <deandeng@google.com>2020-03-06 15:22:30 -0800
committergVisor bot <gvisor-bot@google.com>2020-03-06 15:23:46 -0800
commit228813fd26aadea012cd8c39e084e4b0fb23d273 (patch)
tree5104ec3df5a01f93077813f67c936fd0e6849921 /pkg/sentry
parent960f6a975b7e44c0efe8fd38c66b02017c4fe137 (diff)
Update comments and debug level for profiling options.
PiperOrigin-RevId: 299448307
Diffstat (limited to 'pkg/sentry')
-rw-r--r--pkg/sentry/control/pprof.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/sentry/control/pprof.go b/pkg/sentry/control/pprof.go
index 5d1907c0e..663e51989 100644
--- a/pkg/sentry/control/pprof.go
+++ b/pkg/sentry/control/pprof.go
@@ -117,15 +117,15 @@ func (p *Profile) HeapProfile(o *ProfileOpts, _ *struct{}) error {
return nil
}
-// GoroutineProfile is an RPC stub which dumps out the stack trace for all running
-// goroutines.
+// GoroutineProfile is an RPC stub which dumps out the stack trace for all
+// running goroutines.
func (p *Profile) GoroutineProfile(o *ProfileOpts, _ *struct{}) error {
if len(o.FilePayload.Files) < 1 {
return errNoOutput
}
output := o.FilePayload.Files[0]
defer output.Close()
- if err := pprof.Lookup("goroutine").WriteTo(output, 0); err != nil {
+ if err := pprof.Lookup("goroutine").WriteTo(output, 2); err != nil {
return err
}
return nil