摘要: 本文主要介绍了python内存分析工具: memory_profiler,可以展示每一行代码执行所增加的内存,方便做内存调优和排除bug memory_profiler是第三方模块,需要安装才能使用 1、直接打印结果到终端上 结果如下 2、定义输出到文件,定义结果保留的小数位 结果如下 Mem us 阅读全文
posted @ 2019-12-12 19:39 bainianminguo 阅读(1605) 评论(0) 推荐(0) 编辑
摘要: 有如下一个文件,内容如下 { "test1": "/root/test/test1.template", "test2": "/root/test/test2.template", "test3": "/root/test/test3.template", "test4": "/root/test/ 阅读全文
posted @ 2019-12-12 11:46 bainianminguo 阅读(15299) 评论(0) 推荐(0) 编辑