meminfo 以前在Android Things DP 4.0中工作,但在Android Things DP 5.1(OIR1.170720.017)中似乎无法正常使用。
有关获取内存的任何建议吗?
我有一个PICO-IMX6UL-KIT。 https://developer.android.com/things/hardware/imx6ul.html
import os
import time
from shutil import copyfile
oldir = os.getcwd()
print(oldir)
timestr = time.strftime("%Y%m%d-%H%M%S")
print('timestr: {}'.format(timestr))
newdir = os.path.join(oldir + "\\" + timestr)
print(newdir)
if not os.path.exists(newdir):
os.makedirs(newdir)
for filename in os.listdir(os.getcwd()):
if filename.startswith("green"):
print (filename)
copyfile(oldir+"\\"+filename, newdir + "\\" + filename)