From: Tom Clegg Date: Fri, 11 Aug 2023 18:39:20 +0000 (-0400) Subject: Merge branch '20753-fix-missing-columns' X-Git-Url: https://git.arvados.org/lightning.git/commitdiff_plain/cf3ca9e0f41743bdffd853230e9b4c603db19866?hp=a0a52e9e50ff032df3605a0fbadb2725b67010f7 Merge branch '20753-fix-missing-columns' fixes #20753 Arvados-DCO-1.1-Signed-off-by: Tom Clegg --- diff --git a/slice.go b/slice.go index 057ac5fa9d..63e751c8da 100644 --- a/slice.go +++ b/slice.go @@ -37,6 +37,7 @@ func (cmd *slicecmd) RunCommand(prog string, args []string, stdin io.Reader, std flags := flag.NewFlagSet("", flag.ContinueOnError) flags.SetOutput(stderr) pprof := flags.String("pprof", "", "serve Go profile data at http://`[addr]:port`") + pprofdir := flags.String("pprof-dir", "", "write Go profile data to `directory` periodically") runlocal := flags.Bool("local", false, "run on local host (default: run in an arvados container)") projectUUID := flags.String("project", "", "project `UUID` for output data") priority := flags.Int("priority", 500, "container request priority") @@ -61,6 +62,9 @@ func (cmd *slicecmd) RunCommand(prog string, args []string, stdin io.Reader, std log.Println(http.ListenAndServe(*pprof, nil)) }() } + if *pprofdir != "" { + go writeProfilesPeriodically(*pprofdir) + } if !*runlocal { runner := arvadosContainerRunner{