Skip to content

Commit

Permalink
pprof
Browse files Browse the repository at this point in the history
  • Loading branch information
Wikidepia committed Jul 15, 2024
1 parent 221b35a commit b4983a5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"instafix/utils"
"instafix/views"
"net/http"
_ "net/http/pprof"
"os"
"strconv"
"strings"
Expand Down Expand Up @@ -57,6 +58,11 @@ func main() {
}
}()

go func() {
log.Info().Msg("Starting pprof server")
http.ListenAndServe("0.0.0.0:6060", nil)
}()

// Close database when app closes
// defer scraper.DB.Close()

Expand Down

0 comments on commit b4983a5

Please sign in to comment.