Skip to content

Commit

Permalink
merge main and update go mod
Browse files Browse the repository at this point in the history
Signed-off-by: alecholmez <[email protected]>
  • Loading branch information
alecholmez committed Aug 31, 2021
1 parent 7d7558e commit 774334f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
15 changes: 0 additions & 15 deletions pkg/test/main/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import (
"log"
"net/http"
"os"
"runtime/pprof"
"time"

"github.com/pkg/profile"
Expand Down Expand Up @@ -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)
}

Expand Down

0 comments on commit 774334f

Please sign in to comment.