nosetest --with-profile --profile-stats-file输出
runsnake无法读取输出,因为nosetest使用hotshot,如果我想生成一个可以使用runsnake读取的文件,我需要将其转换为:
st = hotshot.stats.load('output') st.dump_stats( 'output_new')
st = hotshot.stats.load('output')
st.dump_stats( 'output_new')
我可以直接使用cProfile运行测试以使用runsnake进行读取吗?
python nose cprofile
cprofile ×1
nose ×1
python ×1