From c2bcdb73aa6e312d9adb99bb2169b312c542a88a Mon Sep 17 00:00:00 2001 From: Lucas Manning Date: Mon, 12 Feb 2024 11:37:29 -0800 Subject: [PATCH] Fix bug that prevents collecting traces without also collecting a profile. PiperOrigin-RevId: 606315531 --- pkg/test/dockerutil/profile.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/test/dockerutil/profile.go b/pkg/test/dockerutil/profile.go index 11a9229d9..2cb3a54c7 100644 --- a/pkg/test/dockerutil/profile.go +++ b/pkg/test/dockerutil/profile.go @@ -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{