Add core packages, configuration system, and initial application structure

This commit is contained in:
2025-08-21 11:04:03 +01:00
parent b8db587d7b
commit ecaf52b98f
18 changed files with 12889 additions and 0 deletions

19
pprof.go Normal file
View File

@@ -0,0 +1,19 @@
package main
import (
"github.com/pkg/profile"
)
func startProfiler(mode string) {
switch mode {
case "cpu":
prof := profile.Start(profile.CPUProfile)
defer prof.Stop()
case "memory":
prof := profile.Start(profile.MemProfile)
defer prof.Stop()
case "allocation":
prof := profile.Start(profile.MemProfileAllocs)
defer prof.Stop()
}
}