Heartrate:一个牛逼的工具,Python执行实时可视化
实时堆栈追踪(stacktrace)
Heartate——如监测心率般追踪程序运行
项目地址:https://github.com/alexmojaki/heartrate
(点击阅读原文即可访问)
Heartrate 是一个 Python 的工具库,可以实时可视化 Python 程序的执行过程。监控运行中的 Python 程序如图:
如图所示,左侧数字表示每行代码被触发的次数。长方框表示最近被触发的代码行——方框越长表示触发次数越多,颜色越浅表示最近被触发次数越多。
该工具可以做什么:
- 启动程序追踪
- 在线程中启动服务器
- 打开显示 trace() 被调用的文件可视化图的浏览器窗口
代码调用高亮依赖于executing (https://github.com/alexmojaki/executing) 库,同时由于版本原因,hearttrate只支持Python3.5以上版本,pip安装如下:
更多使用方法请点击文末阅读原文访问
推荐阅读
关键词
github.com
代码
工具
版本
Python程序
最新评论
推荐文章
作者最新文章
你可能感兴趣的文章
Copyright Disclaimer: The copyright of contents (including texts, images, videos and audios) posted above belong to the User who shared or the third-party website which the User shared from. If you found your copyright have been infringed, please send a DMCA takedown notice to [email protected]. For more detail of the source, please click on the button "Read Original Post" below. For other communications, please send to [email protected].
版权声明:以上内容为用户推荐收藏至CareerEngine平台,其内容(含文字、图片、视频、音频等)及知识版权均属用户或用户转发自的第三方网站,如涉嫌侵权,请通知[email protected]进行信息删除。如需查看信息来源,请点击“查看原文”。如需洽谈其它事宜,请联系[email protected]。
版权声明:以上内容为用户推荐收藏至CareerEngine平台,其内容(含文字、图片、视频、音频等)及知识版权均属用户或用户转发自的第三方网站,如涉嫌侵权,请通知[email protected]进行信息删除。如需查看信息来源,请点击“查看原文”。如需洽谈其它事宜,请联系[email protected]。