Files
buildroot/support/testing/tests/package/sample_python_memray.py
Fiona Klute (WIWA) c2df8bab97 package/python-memray: new package
Signed-off-by: Fiona Klute (WIWA) <fiona.klute@gmx.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2026-01-02 18:13:46 +01:00

11 lines
214 B
Python

# The test needs some code to profile, it does not have to be much.
def run(a):
print(a[0])
if __name__ == '__main__':
# make sure there's at least a small allocation
a = ['Hello World!']
run(a)