pprof
All checks were successful
/ Make image (push) Successful in 49s

This commit is contained in:
nquidox 2026-02-28 23:33:37 +03:00
parent f466566505
commit 8395cf71b4

View file

@ -2,6 +2,9 @@ package main
import (
"context"
log "github.com/sirupsen/logrus"
"net/http"
_ "net/http/pprof"
"os"
"os/signal"
"syscall"
@ -18,6 +21,12 @@ func main() {
logging.LogSetup(c.LogLevel)
if c.Metrics.GinMode != "release" {
go func() {
log.Println(http.ListenAndServe("localhost:6060", nil))
}()
}
appl := app.New(c)
appl.Run(ctx)