Output profiling filename

This commit is contained in:
Geoff Bourne 2019-05-04 11:09:03 -05:00
parent 6cdc1e06ac
commit 7d2d70b589

View File

@ -48,7 +48,7 @@ func main() {
logrus.WithError(err).Fatal("trying to create cpu profile file")
}
logrus.Info("Starting cpu profiling")
logrus.WithField("file", cpuProfileFile).Info("Starting cpu profiling")
err = pprof.StartCPUProfile(cpuProfileFile)
if err != nil {
logrus.WithError(err).Fatal("trying to start cpu profile")