File: example_undecorated.py

package info (click to toggle)
python-memory-profiler 0.41%2Bgit20161018-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 280 kB
  • ctags: 163
  • sloc: python: 1,469; makefile: 24
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()