未验证 提交 24c917d0 编写于 作者: ocean2o11's avatar ocean2o11 提交者: GitHub

Update update_v8_wasm_profile.py

update to python3
上级 7701bcd8
......@@ -22,7 +22,7 @@ def main(cpuprofile_file, symbol_file):
all_md5s = []
with open(cpuprofile_file) as f:
profile_text = f.read()
for k, v in symbol_map.iteritems():
for k, v in symbol_map.items():
count += 1
strip_name = []
for p in v.split('_'):
......@@ -54,4 +54,4 @@ if __name__ == '__main__':
if len(sys.argv) != 3:
print('usage: python update_v8_wasm_profile.py xxx.cpuprofile xxx.symbols')
else:
main(sys.argv[1], sys.argv[2])
\ No newline at end of file
main(sys.argv[1], sys.argv[2])
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册