summaryrefslogtreecommitdiff
path: root/cmd/server/main.go
diff options
context:
space:
mode:
authorKyren223 <kyren223@proton.me>2025-07-30 20:06:22 +0300
committerKyren223 <kyren223@proton.me>2025-07-30 20:06:22 +0300
commit77dc3bf32f2b0c651df8bdb2d7ddd0d6e34cef0e (patch)
tree1d9990633ec8a8267ccfd0ec2091332cb99315a6 /cmd/server/main.go
parentfb8fba2265bd5229ec68da553587132af6c9521f (diff)
Fixed ci to pass, removed pyroscope
Diffstat (limited to 'cmd/server/main.go')
-rw-r--r--cmd/server/main.go50
1 files changed, 25 insertions, 25 deletions
diff --git a/cmd/server/main.go b/cmd/server/main.go
index 147670e..8ee5674 100644
--- a/cmd/server/main.go
+++ b/cmd/server/main.go
@@ -29,9 +29,9 @@ import (
"syscall"
"time"
- "github.com/grafana/pyroscope-go"
- _ "github.com/grafana/pyroscope-go/godeltaprof/http/pprof"
- _ "net/http/pprof"
+ // "github.com/grafana/pyroscope-go"
+ // _ "github.com/grafana/pyroscope-go/godeltaprof/http/pprof"
+ // _ "net/http/pprof"
"github.com/kyren223/eko/embeds"
"github.com/kyren223/eko/internal/server"
@@ -73,7 +73,7 @@ func main() {
handleReload()
handleShutdown(cancel)
- startPyroscopeProfiling()
+ // startPyroscopeProfiling()
if ok := reloadTosAndPrivacy(); !ok {
return
@@ -226,24 +226,24 @@ func reloadTosAndPrivacy() bool {
return true
}
-func startPyroscopeProfiling() {
- pyroscope.Start(pyroscope.Config{
- ApplicationName: "eko",
- ServerAddress: "http://localhost:4040",
- Logger: pyroscope.StandardLogger, // nil to disable
- // by default all profilers are enabled,
- // but you can select the ones you want to use:
- ProfileTypes: []pyroscope.ProfileType{
- pyroscope.ProfileCPU,
- pyroscope.ProfileAllocObjects,
- pyroscope.ProfileAllocSpace,
- pyroscope.ProfileInuseObjects,
- pyroscope.ProfileInuseSpace,
- pyroscope.ProfileGoroutines,
- pyroscope.ProfileMutexCount,
- pyroscope.ProfileMutexCount,
- pyroscope.ProfileBlockCount,
- pyroscope.ProfileBlockDuration,
- },
- })
-}
+// func startPyroscopeProfiling() {
+// pyroscope.Start(pyroscope.Config{
+// ApplicationName: "eko",
+// ServerAddress: "http://localhost:4040",
+// Logger: pyroscope.StandardLogger, // nil to disable
+// // by default all profilers are enabled,
+// // but you can select the ones you want to use:
+// ProfileTypes: []pyroscope.ProfileType{
+// pyroscope.ProfileCPU,
+// pyroscope.ProfileAllocObjects,
+// pyroscope.ProfileAllocSpace,
+// pyroscope.ProfileInuseObjects,
+// pyroscope.ProfileInuseSpace,
+// pyroscope.ProfileGoroutines,
+// pyroscope.ProfileMutexCount,
+// pyroscope.ProfileMutexCount,
+// pyroscope.ProfileBlockCount,
+// pyroscope.ProfileBlockDuration,
+// },
+// })
+// }