mirror of
https://github.com/itzg/mc-router.git
synced 2024-11-22 11:35:14 +01:00
Output profiling filename
This commit is contained in:
parent
6cdc1e06ac
commit
7d2d70b589
@ -48,7 +48,7 @@ func main() {
|
|||||||
logrus.WithError(err).Fatal("trying to create cpu profile file")
|
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)
|
err = pprof.StartCPUProfile(cpuProfileFile)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logrus.WithError(err).Fatal("trying to start cpu profile")
|
logrus.WithError(err).Fatal("trying to start cpu profile")
|
||||||
|
Loading…
Reference in New Issue
Block a user