mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Fix bug that prevents collecting traces without also collecting a profile.
PiperOrigin-RevId: 606315531
This commit is contained in:
committed by
gVisor bot
parent
cd6c646b1a
commit
c2bcdb73aa
@@ -47,7 +47,7 @@ type profile struct {
|
||||
// useful in this context to overwrite previous runs, and generate a
|
||||
// single profile result for the final test.
|
||||
func (c *Container) profileInit(image string) {
|
||||
if !*pprofBlock && !*pprofCPU && !*pprofMutex && !*pprofHeap {
|
||||
if !*pprofBlock && !*pprofCPU && !*pprofMutex && !*pprofHeap && !*trace {
|
||||
return // Nothing to do.
|
||||
}
|
||||
c.profile = &profile{
|
||||
|
||||
Reference in New Issue
Block a user