Pyriscope: Precise and Low-Overhead Python Control Flow Tracing via Sparse Hardware-Based Events

Capturing the control-flow and/or coverage profiles of Python code becomes a pressing need for Python development community, which is commonly used in a wide spectrum of tasks including program testing/fuzzing, debugging, understanding, and optimizations. Existing tracing approaches either suffer from prohibitively high overhead or only collect approximate information, which cannot satisfy the practical requirements. In this paper, we propose to leverage modern hardware tracing modules to achieve precise and low-overhead control-flow tracing for Python programs. To this goal, we develop Pyriscope on top of CPython runtime by integrating the effective trace pruning and efficient analysis techniques. Evaluation results demonstrate the efficacy of our system. It incurs an average overhead of only 2.99% for rich-informative control-flow tracing, which is orders of magnitude smaller than that of the state of the arts.

Authors

Institutions

Publication Details

Journal
Proceedings of the ACM on Programming Languages
Published
2026-10-01
DOI
https://doi.org/10.1145/3839479
Primary Topic
Software Testing and Debugging Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
article

Pyriscope: Precise and Low-Overhead Python Control Flow Tracing via Sparse Hardware-Based Events

Zhiqiang Zuo, Xinchen Yao, Wu Daiyou
Proceedings of the ACM on Programming Languages
Software Testing and Debugging Techniques
article

Pyriscope: Precise and Low-Overhead Python Control Flow Tracing via Sparse Hardware-Based Events

Zhiqiang Zuo, Xinchen Yao, Wu Daiyou
article en

Abstract

Capturing the control-flow and/or coverage profiles of Python code becomes a pressing need for Python development community, which is commonly used in a wide spectrum of tasks including program testing/fuzzing, debugging, understanding, and optimizations. Existing tracing approaches either suffer from prohibitively high overhead or only collect approximate information, which cannot satisfy the practical requirements. In this paper, we propose to leverage modern hardware tracing modules to achieve precise and low-overhead control-flow tracing for Python programs. To this goal, we develop Pyriscope on top of CPython runtime by integrating the effective trace pruning and efficient analysis techniques. Evaluation results demonstrate the efficacy of our system. It incurs an average overhead of only 2.99% for rich-informative control-flow tracing, which is orders of magnitude smaller than that of the state of the arts.

Proceedings of the ACM on Programming LanguagesVol. 10(OOPSLA2)
Nanjing University (CN)
Partnerships for the goals
Openalex Percentile: Top 7%
Software Testing and Debugging Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Pyriscope: Precise and Low-Overhead Python Control Flow Tracing via Sparse Hardware-Based Events — Zhiqiang Zuo, Xinchen Yao, et al. · Proceedings of the ACM on Programming Languages (2026) | TGRS Research Map | TGRS