diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -13,7 +13,8 @@ import ( ) var ( - configFile = flag.String("config", "config.yaml", "path to the YAML configuration file") + configFile = flag.String("config", "config.yaml", "path to the YAML configuration file") + enablePprof = flag.Bool("pprof", false, "expose pprof endpoints at /debug/pprof") ) func main() { @@ -30,7 +31,7 @@ func main() { db, err := sql.Open("sqlite3", appConfig.Database.Path) kcore.Expect(err, "failed to open database") defer db.Close() - cli.Run(db, *configFile, appConfig) + cli.Run(db, *configFile, appConfig, flag.Args(), *enablePprof) } // startPyroscope starts the continuous profiler when enabled in the config and |
