mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 10:06:24 +05:00
Upgraded MemoryProfiling api + tests
This commit is contained in:
committed by
Dan Christian Bogos
parent
2541fd1cd2
commit
78a9b724ed
@@ -131,6 +131,9 @@ func (cS *CoreService) StartMemoryProfiling(args *utils.MemoryPrf) (err error) {
|
||||
return utils.NewErrMandatoryIeMissing("Path")
|
||||
}
|
||||
cS.shdWg.Add(1)
|
||||
if cS.stopMemPrf == nil {
|
||||
cS.stopMemPrf = make(chan struct{})
|
||||
}
|
||||
go MemProfiling(args.DirPath, args.Interval, args.NrFiles, cS.shdWg, cS.stopMemPrf, cS.shdChan)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user