rspack-perf-profiling

Profile Rspack builds on Linux using perf with DWARF call graphs.

12.8k|834|Updated Apr 1, 2022
One-click install
npx skills add https://github.com/web-infra-dev/rspack --skill rspack-perf-profiling
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rspack-perf-profiling
Source: https://github.com/web-infra-dev/rspack/tree/main/.agents/skills/rspack-perf-profiling
Command: npx skills add https://github.com/web-infra-dev/rspack --skill rspack-perf-profiling

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps developers identify CPU hotspots and bottlenecks in Rspack builds on Linux by profiling with perf, capturing detailed call graphs, and analyzing hotspots for performance tuning.

Core Features & Use Cases

  • Perf-based profiling for Rspack builds on Linux with DWARF call graphs to resolve kernel and user-space stacks.
  • Generates perf.data and provides hotspot analysis; optionally integrates with Samply for per-CPU thread visualization.
  • Useful for performance optimization during development, benchmarking, and regression testing.

Quick Start

Build the profiling-enabled binding, enable kernel symbols, record a perf profile, and analyze hotspots.

Frequently Asked Questions about rspack-perf-profiling

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I profile Rspack builds to find CPU hotspots on Linux?

Profile Rspack builds on Linux by using the perf tool with DWARF call graphs to capture detailed kernel and user-space stack traces, generating a perf.data file for precise CPU hotspot analysis.

What is perf profiling with DWARF call graphs used for in Rspack?

Perf profiling with DWARF call graphs is used to resolve both kernel and user-space stacks for Rspack builds, enabling developers to identify exact CPU bottlenecks and hotspots during performance optimization and benchmarking.

Do I need the perf tool and Linux to analyze Rspack CPU bottlenecks?

Yes, you need the Linux operating system and the perf tool to analyze Rspack CPU bottlenecks, as the profiling process relies on Linux perf to record repeatable stack traces.

Can I visualize per-CPU thread hotspots for Rspack profiling?

Yes, you can visualize per-CPU thread hotspots for Rspack profiling by optionally integrating with Samply, which reads the generated perf data to provide per-CPU visualization.

What's the best way to uncover Rspack performance regressions during benchmarking?

The best way to uncover Rspack performance regressions during benchmarking is to build a profiling-enabled binding, enable kernel symbols, and record a perf profile to capture repeatable CPU hotspot data.

Why does my Rspack build profiling not resolve user-space stack traces?

Your Rspack build profiling may not resolve user-space stack traces if DWARF call graphs are not enabled or kernel symbols are not properly configured, both required to accurately capture detailed stack data.