File tree 2 files changed +2
-15
lines changed
2 files changed +2
-15
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGX
9
9
github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403 /go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk =
10
10
github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158 h1:CevA8fI91PAnP8vpnXuB8ZYAZ5wqY86nAbxfgK8tWO4 =
11
11
github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158 /go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs =
12
+ github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d h1:U+s90UTSYgptZMwQh2aRr3LuazLJIa+Pg3Kc1ylSYVY =
13
+ github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d /go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU =
12
14
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8 =
13
15
github.com/davecgh/go-spew v1.1.0 /go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38 =
14
16
github.com/envoyproxy/go-control-plane v0.9.0 /go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4 =
Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ import (
24
24
"log"
25
25
"net/http"
26
26
"os"
27
- "runtime/pprof"
28
27
"time"
29
28
30
29
"github.com/pkg/profile"
@@ -287,20 +286,6 @@ func main() {
287
286
}
288
287
}
289
288
290
- if pprofEnabled {
291
- for _ , prof := range []string {"block" , "goroutine" , "mutex" } {
292
- p := pprof .Lookup (prof )
293
- filePath := fmt .Sprintf ("%s_profile_%s.pb.gz" , prof , mode )
294
- log .Printf ("storing %s profile for %s in %s" , prof , mode , filePath )
295
- f , err := os .Create (filePath )
296
- if err != nil {
297
- log .Fatalf ("could not create %s profile %s: %s" , prof , filePath , err )
298
- }
299
- p .WriteTo (f , 1 ) // nolint:errcheck
300
- f .Close ()
301
- }
302
- }
303
-
304
289
log .Printf ("Test for %s passed!\n " , mode )
305
290
}
306
291
You can’t perform that action at this time.
0 commit comments