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_fullBreakdown()[source]
test_displayMemoryUsage()[source]
test_printFullMemoryBreakdown()[source]
test_getReferrers()[source]
test_checkForDuplicateObjectsOnArmiModel()[source]
test_profileMemoryUsageAction()[source]
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).

test_printCurrentMemoryState(mockCpuCount, mockVMem, mock1, mockPrintSysMemUseAction)[source]

Use an example node with 50 GB of total physical memory and 10 CPUs while using 6 GB.

test_printCurrentMemoryState_noSetting()[source]

Test that the try/except works as it should.

class armi.bookkeeping.tests.test_memoryProfiler.KlassCounterTests(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.

get_containers()[source]
test_expandContainer()[source]
test_countHandlesRecursion()[source]