Python 2.7.11
Filename: test_memory_memoization.py

Line #    Mem usage    Increment   Line Contents
================================================
    16     22.0 MiB      0.0 MiB   @profile
    17                             def memoization():
    18                             
    19     22.3 MiB      0.2 MiB       parser = ParserPython(rhapsody, memoization=True)
    20                             
    21                                 # Smaller file
    22     22.3 MiB      0.0 MiB       file_name = join(dirname(__file__), 'test_inputs', 'LightSwitch.rpy')
    23     22.3 MiB      0.0 MiB       with codecs.open(file_name, "r", encoding="utf-8") as f:
    24     24.8 MiB      2.6 MiB           content = f.read()
    25                             
    26    118.2 MiB     93.4 MiB       small = parser.parse(content)
    27                             
    28                                 # File that is double in size
    29    118.2 MiB      0.0 MiB       file_name = join(dirname(__file__), 'test_inputs', 'LightSwitchDouble.rpy')
    30    118.2 MiB      0.0 MiB       with codecs.open(file_name, "r", encoding="utf-8") as f:
    31    118.2 MiB      0.0 MiB           content = f.read()
    32                             
    33    231.0 MiB    112.8 MiB       large = parser.parse(content)


