百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
P

pycrunch-trace

> DevOps
开源

Python 的时间旅行调试

198 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

Python 的时间旅行调试

UI Overview

Quick start

Interactive Demo

Documentation

pip install pycrunch-trace

Then, Add attribute @trace to the method you want to record

python
from pycrunch_trace.client.api import trace

@trace
def run():
    some_code()

Or, alternatively, without decorator:

python
from pycrunch_trace.client.api import Trace

tracer = Trace()
tracer.start('recording_name')

some_code()

tracer.stop()

Optional session_name can be also passed to decorator:

python
@trace('my_custom_recording_name')

Specifying custom folders/files to exclude

this will greatly speed-up profiler, however calls to the ignored directories will be ignored.

Exclusion will be considered if absolute file path either starts_with or ends_with with given stop-list.

python
from pycrunch_trace.client.api import Trace
 
t = Trace()
t.start(additional_excludes=[
             '/Users/gleb/.venvs/pycrunch_trace'
             '/Users/gleb/.pyenv/versions/3.6.15/',
             'unwanted_file.py',
        ])

some_code()

t.stop()

This is also possible via decorator:

python
from pycrunch_trace.client.api import trace

@trace(additional_excludes=['/Users/gleb/.venvs/pycrunch_trace'])
def run():
    some_code()

Use web app for replaying recording:

http://app.pytrace.com/

In case if you want to run UI locally, instead of using hosted version: Link for web app source code

(Replays are not sent anywhere and processed entirely in-memory)

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Pythondebuggingprofilerpythontime-travel

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类DevOps
定价开源

> 相关工具

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理