Skip to main content Switch to mobile version xprobe 0.7.2 Find out why your CPU, Python, or CUDA process is slow in two commands: a bounded Linux profiler for AI coding agents.
pip install xprobe==0.7.2 Copy PIP instructions
Minimizing friction on the path to RSI.
Live Linux CPU, Python, syscall, and CUDA profiler for AI agents and engineers.
Illustrative RSI loop: live GPU bubble + Python GIL capture aligned on CLOCK_MONOTONIC, sliced in JSONL, patched, and re-verified.
1. CPU, CPython stacks/GIL, syscalls, uprobes, and CUDA kernels/copies/APIs attach live; NVTX ranges require NVTX_INJECTION64_PATH before the first NVTX call.2. Once a bottleneck is isolated inside a single GPU kernel or needs GUI inspection, hand off to ncu or nsys.
CLI (Linux x86_64, glibc ≥ 2.28)
pip install xprobe Ships the CLI plus CUDA 12 and CUDA 13 CUPTI Agents (zero Python dependencies). For the standalone archive installer (no Python required), custom prefixes, upgrades, and verification, see Installation.
AI Agent Skill (Claude Code, Codex, Cursor)
npx skills add itdevwu/xprobe Installs the xprobe-perf-profiling skill from skills.sh with artifact layouts, scripting recipes, and the bundled analyze_trace.py analyzer. To pin a release, see Installation.
📊 Measured overhead
2 s runs per case; lower is better (1.00x = zero overhead). See Benchmarks for full methodology, stress numbers, and reproducible recipes.
# 1. Sample CPython 3.9–3.14 stacks & GIL holder from outside the process (no -X perf) xprobe measure --pid 4242 --python-sample --duration-ms 2000 # 2. Aggregate GPU kernels or memcpy (memcpy splits by pageable vs pinned) xprobe measure --pid 4242 --from cuda:kernel_start --to cuda:kernel_end \ --match exact --aggregate --duration-ms 2000 xprobe measure --pid 4242 --from cuda:memcpy_start --to cuda:memcpy_end \ --match exact --aggregate --duration-ms 2000 # 3. Measure exact latency from a CUDA API call to the GPU work it issued xprobe measure --pid 4242 --from cuda:launch_api:exit \ --to 'cuda:kernel_start:name~flash.*' --match exact --samples 200 # 4. Wait for a rare >=10 ms GPU idle bubble and keep ±50 ms of context around it xprobe measure --pid 4242 --trigger-idle-ms 10 --pre-ms 50 --post-ms 50 \ --timeout-ms 300000 --events-out spikes Pipe into one-off scripts & RSI loops
When stdout is piped, every command emits one JSON object alongside raw trace files and a .manifest.json (CLOCK_MONOTONIC window, UTC wall_clock anchors, and cuda_devices GPU UUIDs):
# Capture once, diff metrics across iterations, or join traces in Python before=$(xprobe measure --spec kernel.json | jq '.measurement.latency_ns.p95') # ... apply change ... after=$(xprobe measure --spec kernel.json | jq '.measurement.latency_ns.p95') # Slice a GPU bubble alongside concurrent Python & CPU samples, or compare multi-GPU ranks skills/xprobe-perf-profiling/scripts/analyze_trace.py trace.jsonl \ --slice-gap 1 --python-samples py.jsonl --cpu-samples cpu.jsonl skills/xprobe-perf-profiling/scripts/analyze_trace.py rank0.jsonl rank1.jsonl rank2.jsonl rank3.jsonl Because concurrent captures on one host share CLOCK_MONOTONIC, you can also join traces across different processes (for example, an API/scheduler process and its GPU workers) in a few lines of Python, or re-correlate saved Event JSONL offline with xprobe measure --input.
🛠️ Commands & runtime notes
Live CUDA attach: measure --pid automatically loads the matching CUDA 12 or 13 CUPTI Agent via ptrace (requires same mount namespace and ptrace permission), reports the injection on stderr and in JSON, disables collection on stop, and leaves the .so mapped for safe reuse.
NVTX ranges: set NVTX_INJECTION64_PATH before the target's first NVTX call (CUDA's NVTX dispatch cannot be retrofitted after initialization).
Clock safety: GPU-only durations work on all supported CUDA majors; cross CPU/GPU subtraction enforces runtime clock alignment and returns CLOCK_ALIGNMENT_FAILED instead of silently mixing unaligned clocks.
Full documentation: English · 中文
CUPTI agent and injection
Development and hardware tests
Implemented behavior is defined by code, tests, and schemas. Licensed under Apache-2.0. README visuals embed subsets of Maple Mono and Geist (SIL OFL-1.1).
Released: Dec 3, 2026
1 file in this release has provenance metadata.
View provenance details
Apache Software License (Apache-2.0)
profiler profiling performance latency gpu cuda cupti ebpf perf pytorch python linux ai-agent claude-code codex cursor
Development Status 4 - Beta
GPU :: NVIDIA CUDA :: 12
GPU :: NVIDIA CUDA :: 13
Intended Audience Developers
License OSI Approved :: Apache Software License
Operating System POSIX :: Linux
Programming Language Rust
Topic Software Development :: Debuggers
System :: Monitoring
Release files for xprobe 0.7.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
Release files / xprobe-0.7.2-py3-none-manylinux_2_28_x86_64.whl
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.
Security for xprobe 0.7.2
1 file in this release has been uploaded with provenance metadata.
With provenance xprobe-0.7.2-py3-none-manylinux_2_28_x86_64.whl Dec 3, 2026
Attestation for xprobe-0.7.2-py3-none-manylinux_2_28_x86_64.whl
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
Dec 3, 2026 1 release file Full provenance
Dec 2, 2026 1 release file Full provenance
Nov 28, 2026 1 release file Full provenance
Nov 26, 2026 1 release file Full provenance
Nov 21, 2026 1 release file Full provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation
Deployed from 107c339











