Lines Matching refs:os
3 import os
19 oprofile_bin_dir = os.environ['OPROFILE_BIN_DIR']
22 android_host_out = os.environ['ANDROID_HOST_OUT']
45 if (os.path.exists(output_dir) and (replace_dir == 1)):
46 os.system("rm -fr " + output_dir)
49 os.makedirs(output_dir)
51 if os.path.exists(output_dir):
59 result = os.system("adb%s pull /data/oprofile/samples %s/raw_samples "
66 result = os.system("adb%s pull /data/oprofile/abi %s/abi "
73 os.chdir(output_dir)
86 stream = os.popen("find raw_samples -type d -name \*\ \(deleted\)\* | sort -r")
91 os.system(cmd)
102 stream = os.popen("find raw_samples -type f -name \*all")
112 if not os.path.exists(dir):
113 os.makedirs(dir)
117 os.system(cmd)
122 os.system(oprofile_bin_dir + "/opreport --session-dir=.")