Skip to content

Commit 28ddd71

Browse files
author
nick
committed
add pprof
1 parent a125a20 commit 28ddd71

File tree

2 files changed

+11
-115
lines changed

2 files changed

+11
-115
lines changed

main.go

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,17 @@ limitations under the License.
1515
*/
1616
package main
1717

18-
import "github.com/lampnick/doctron/cmd"
18+
import (
19+
"log"
20+
"net/http"
21+
_ "net/http/pprof"
22+
23+
"github.com/lampnick/doctron/cmd"
24+
)
1925

2026
func main() {
21-
cmd.Execute()
27+
go func() {
28+
log.Println(http.ListenAndServe("localhost:6060", nil))
29+
}()
30+
cmd.Execute()
2231
}

worker/worker.go.bak

Lines changed: 0 additions & 113 deletions
This file was deleted.

0 commit comments

Comments
 (0)