Tag: kcachegrind

什么是“<Cycle 1>”在Xdebug中的一个指示?

我有一个用kcachegrindparsing的php脚本的xdebugconfiguration文件。 下面是一个屏幕截图,显示了在给定函数中花费的大部分时间花在了<cycle 1> ,而最上面的“Callers”是由index.php中的'include'和'include_once'创build的。 这个configuration文件是在使用apache“ab”的压力testing期间运行的,因此发生了许多并发连接。 <cycle 1>在xdebugconfiguration文件中指明了什么?

在KCacheGrind中使用cProfile结果

我使用cProfile来分析我的Python程序。 根据这个演讲,我觉得KCacheGrind可以parsing和显示cProfile的输出。 但是,当我导入文件时,KCacheGrind只是在状态栏中显示“未知的文件格式”错误,并且不显示任何内容。 在我的分析统计信息与KCacheGrind兼容之前,有什么特别的事情需要处理? … if profile: import cProfile profileFileName = 'Profiles/pythonray_' + time.strftime('%Y%m%d_%H%M%S') + '.profile' profile = cProfile.Profile() profile.run('pilImage = camera.render(scene, samplePattern)') profile.dump_stats(profileFileName) profile.print_stats() else: pilImage = camera.render(scene, samplePattern) … 包版本 KCacheGrind 4.3.1 Python 2.6.2