Fix bug that prevents collecting traces without also collecting a profile.

PiperOrigin-RevId: 606315531
This commit is contained in:
Lucas Manning
2024-02-12 11:40:27 -08:00
committed by gVisor bot
parent cd6c646b1a
commit c2bcdb73aa
+1 -1
View File
@@ -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{