gaogaotiantian

viztracer

未分类

gaogaotiantian

A debugging and profiling tool that can trace and visualize python code execution

6.8k
Stars
441
Forks
15
Issues
34
Contributors
57
Watchers
tracerpython3debuggingprofilingvisualizationflamegraphpythonlogging
Python
{"name":"Apache License 2.0","spdxId":"Apache-2.0"}

Project Description

VizTracer is a low-overhead Python tool for tracing, debugging, and profiling code execution, offering detailed function entry/exit timelines with source code. It requires no source code changes for most features and has no package dependencies. VizTracer supports threading, multiprocessing, subprocesses, async, and PyTorch, with a powerful front-end powered by Perfetto that can smoothly render large traces. It works across Linux, macOS, and Windows. Key features include trace filtering, custom event logging, and support for Jupyter notebooks. Installation is via pip, and it can be used via command line, inline scripts, or a VS Code extension. VizTracer is optimized for performance, with minimal overhead, and supports advanced use cases like remote attach and flamegraphs.

© 2025 GitHub Fun. All rights reserved.