Slightly less aggressive profiling
This commit is contained in:
parent
1cc9b3ee9a
commit
4024124043
@ -14,8 +14,8 @@ import (
|
|||||||
"github.com/pkg/profile"
|
"github.com/pkg/profile"
|
||||||
)
|
)
|
||||||
|
|
||||||
var profileTicker = time.NewTicker(60 * time.Second)
|
var profileTicker = time.NewTicker(600 * time.Second)
|
||||||
var printTicker = time.NewTicker(10 * time.Second)
|
var printTicker = time.NewTicker(60 * time.Second)
|
||||||
var profileCounter = 0
|
var profileCounter = 0
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
@ -73,7 +73,6 @@ func PrintMemUsage() {
|
|||||||
|
|
||||||
logger.Ctx(ctx).Info("StackInuse = ", bToMb(m.StackInuse), " MB")
|
logger.Ctx(ctx).Info("StackInuse = ", bToMb(m.StackInuse), " MB")
|
||||||
logger.Ctx(ctx).Info("StackSys = ", bToMb(m.StackSys), " MB")
|
logger.Ctx(ctx).Info("StackSys = ", bToMb(m.StackSys), " MB")
|
||||||
logger.Ctx(ctx).Info("HeapSys = ", bToMb(m.HeapSys), " MB")
|
|
||||||
|
|
||||||
logger.Ctx(ctx).Info("Sys = ", bToMb(m.Sys), " MB")
|
logger.Ctx(ctx).Info("Sys = ", bToMb(m.Sys), " MB")
|
||||||
logger.Ctx(ctx).Info("NumGC = ", m.NumGC)
|
logger.Ctx(ctx).Info("NumGC = ", m.NumGC)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user