(profile *config.Profile)
| 31 | } |
| 32 | |
| 33 | func NewMemoryMonitor(profile *config.Profile) *MemoryMonitor { |
| 34 | return &MemoryMonitor{ |
| 35 | profile: profile, |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | func (mm *MemoryMonitor) Run(ctx context.Context, wg *sync.WaitGroup) { |
| 40 | ticker := time.NewTicker(monitorInterval) |