feat: add profile and alarm notification

This commit is contained in:
zhuyasen
2022-12-10 22:26:32 +08:00
parent b99a84fef1
commit 64af176419
30 changed files with 754 additions and 54 deletions

View File

@@ -53,7 +53,10 @@ func Config() {
// initializing the print system and process resources
if cfg.App.EnableStat {
stat.Init(stat.WithLog(logger.Get()))
stat.Init(
stat.WithLog(logger.Get()),
stat.WithAlarm(), // invalid if it is windows, the default threshold for cpu and memory is 0.8, you can modify them
)
}
}