rspack-sftrace
OfficialTrace Rust calls for performance insights
System Documentation
What problem does it solve?
This skill enables tracing of Rust function calls with sftrace to help analyze performance and troubleshoot rspack. It converts traces into perfetto protobufs for downstream tooling.
Core Features & Use Cases
- Instrumentation-based Rust tracing with sftrace to capture function call data.
- End-to-end workflow: build sftrace, compile the Rust bindings, record traces, and convert them for analysis.
- Use Case: Profile rspack during development to identify hot paths, then visualize traces with Perfetto or viztracer.
Quick Start
Clone and build sftrace, build the binding, record a trace, and analyze it with perfetto: git clone https://github.com/quininer/sftrace cd sftrace cargo build --release mkdir "$(./target/release/sftrace record --print-solib-install-dir)" cp ./target/release/libsftrace.so "$(./target/release/sftrace record --print-solib-install-dir)/" SFTRACE=1 pnpm run build:binding:debug cd examples/basic/ sftrace record -- pnpm build sftrace convert sf.log -o sf.pb.gz vizviewer --use_external_processor sf.pb.gz
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: rspack-sftrace Download link: https://github.com/web-infra-dev/rspack/archive/main.zip#rspack-sftrace Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.