摘要:        
High performance logging profiler官方文档:http://docs.python.org/2/library/hotshot.html#module-hotshot在 2.x 中,hotshot 用来做性能统计,开销比 profile/cProfile 更小。但 3.x 开始, hotshot 就不大行了。只需要启动 hotshot.Profile(),并执行要统计的代码段。代码段: 1. test.py # test.pyimport hotshotdef printMe(): print "Hello"p = hotshot.Profil    阅读全文
posted @ 2013-08-30 16:48
小侠女
阅读(660)
评论(0)
推荐(0)
        
 
                     
                    
                 
                    
                
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号