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