|
@@ -53,7 +53,10 @@ func main() {
|
|
|
if *profile {
|
|
if *profile {
|
|
|
runtime.SetBlockProfileRate(1)
|
|
runtime.SetBlockProfileRate(1)
|
|
|
go func() {
|
|
go func() {
|
|
|
- http.ListenAndServe(fmt.Sprintf("localhost:%d", *profilePort), nil)
|
|
|
|
|
|
|
+ err := http.ListenAndServe(fmt.Sprintf("localhost:%d", *profilePort), nil)
|
|
|
|
|
+ if err != nil {
|
|
|
|
|
+ panic(err)
|
|
|
|
|
+ }
|
|
|
}()
|
|
}()
|
|
|
|
|
|
|
|
f, err := os.Create("trace.out")
|
|
f, err := os.Create("trace.out")
|