armi.bookkeeping.tests.test_memoryProfiler module
Tests for memoryProfiler.
- class armi.bookkeeping.tests.test_memoryProfiler.TestMemoryProfiler(methodName='runTest')[source]
Bases:
TestCase
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- test_getTotalJobMemory(mockCpuCount, mockVMem)[source]
Use an example node with 50 GB of total physical memory and 10 CPUs.
- test_getCurrentMemoryUsage(mockSysAndProcMemUse, mockPrintSysMemUseAction)[source]
Mock the memory usage across 3 different processes and that the total usage is as expected (6 MB).