From 774334f53dcbc426a849c6d31451f95dec3a7d86 Mon Sep 17 00:00:00 2001 From: alecholmez Date: Tue, 31 Aug 2021 14:15:50 -0400 Subject: [PATCH] merge main and update go mod Signed-off-by: alecholmez --- go.sum | 2 ++ pkg/test/main/main.go | 15 --------------- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/go.sum b/go.sum index 79179cf180..d74f679107 100644 --- a/go.sum +++ b/go.sum @@ -9,6 +9,8 @@ github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGX github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158 h1:CevA8fI91PAnP8vpnXuB8ZYAZ5wqY86nAbxfgK8tWO4= github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d h1:U+s90UTSYgptZMwQh2aRr3LuazLJIa+Pg3Kc1ylSYVY= +github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= diff --git a/pkg/test/main/main.go b/pkg/test/main/main.go index 410b042ec4..44f479a577 100644 --- a/pkg/test/main/main.go +++ b/pkg/test/main/main.go @@ -24,7 +24,6 @@ import ( "log" "net/http" "os" - "runtime/pprof" "time" "github.com/pkg/profile" @@ -287,20 +286,6 @@ func main() { } } - if pprofEnabled { - for _, prof := range []string{"block", "goroutine", "mutex"} { - p := pprof.Lookup(prof) - filePath := fmt.Sprintf("%s_profile_%s.pb.gz", prof, mode) - log.Printf("storing %s profile for %s in %s", prof, mode, filePath) - f, err := os.Create(filePath) - if err != nil { - log.Fatalf("could not create %s profile %s: %s", prof, filePath, err) - } - p.WriteTo(f, 1) // nolint:errcheck - f.Close() - } - } - log.Printf("Test for %s passed!\n", mode) }