mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-10-03 07:21:45 -09:00
package/python-memray: new package
Signed-off-by: Fiona Klute (WIWA) <fiona.klute@gmx.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
e58321b680
commit
c2df8bab97
10
support/testing/tests/package/sample_python_memray.py
Normal file
10
support/testing/tests/package/sample_python_memray.py
Normal file
@@ -0,0 +1,10 @@
|
||||
# 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)
|
||||
Reference in New Issue
Block a user