#!/usr/bin/env python3
"""Hold and keep touching <mb> MiB of anonymous memory so the scope stays over MemoryHigh."""
import sys, time
mb = int(sys.argv[1])
blocks = [bytearray(1024 * 1024) for _ in range(mb)]
while True:
    for b in blocks:
        b[0] = (b[0] + 1) % 256
    time.sleep(0.05)
