File: example_undecorated.py

package info (click to toggle)
python-memory-profiler 0.61-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 540 kB
  • sloc: python: 2,220; makefile: 33
file content (9 lines) | stat: -rw-r--r-- 185 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9

def another_func():
    """Undecorated function that allocates memory"""
    c = [1] * (10 ** 6)
    d = [1] * (10 ** 7)
    return c, d

if __name__ == '__main__':
    another_func()