protected MemDiagnosticViewModel(MegaSDK megaSdk, bool autoStartDiagnostics, TimeSpan diagnosticPeriod) : base(megaSdk) { MemoryController = new AppMemoryController(314572800); if (autoStartDiagnostics) { MemoryController.StartDiagnostics(new TimeSpan(0), diagnosticPeriod); } }
public void StartMemoryCounter() { _appMemoryController = new AppMemoryController(100UL.FromMBToBytes()); _appMemoryController.DiagnosticUpdate += AppMemoryControllerOnDiagnosticUpdate; _appMemoryController.StartDiagnostics(new TimeSpan(0), new TimeSpan(0, 0, 3)); }