Пример #1
0
def test_system():
    """Test system physical memory usage."""
    if os.name == 'nt':
        #  windll can only be imported if os.name = 'nt' or 'ce'
        assert windows_memory_usage() > 0
    else:
        assert memory_usage() > 0
Пример #2
0
def test_system():
    """Test system physical memory usage."""
    if os.name == 'nt':
        #  windll can only be imported if os.name = 'nt' or 'ce'
        assert windows_memory_usage() > 0
    else:
        assert memory_usage() > 0
Пример #3
0
 def get_value(self):
     """Return memory usage."""
     from spyder.utils.system import memory_usage
     text = '%d%%' % memory_usage()
     return 'Mem ' + text.rjust(3)
Пример #4
0
 def get_value(self):
     """Return memory usage."""
     text = '%d%%' % memory_usage()
     return 'Mem ' + text.rjust(3)
Пример #5
0
 def get_value(self):
     """Return memory usage."""
     from spyder.utils.system import memory_usage
     text = '%d%%' % memory_usage()
     return 'Mem ' + text.rjust(3)
Пример #6
0
 def get_value(self):
     """Return memory usage"""
     from spyder.utils.system import memory_usage
     return memory_usage()
Пример #7
0
 def get_value(self):
     """Return memory usage."""
     from spyder.utils.system import memory_usage
     return memory_usage()