小编Vir*_*ako的帖子

如何使用带有nosetest的cProfile --with-profile?

nosetest --with-profile --profile-stats-file输出

runsnake无法读取输出,因为nosetest使用hotshot,如果我想生成一个可以使用runsnake读取的文件,我需要将其转换为:

st = hotshot.stats.load('output')

st.dump_stats( 'output_new')

我可以直接使用cProfile运行测试以使用runsnake进行读取吗?

python nose cprofile

12
推荐指数
2
解决办法
3316
查看次数

标签 统计

cprofile ×1

nose ×1

python ×1