rspack-perf-profiling
Run Rspack performance profiling on Linux using perf (with DWARF call stacks), generate perf.data, and analyze hotspots. Use when you need CPU-level bottlenecks, kernel symbol resolution, or repeatable profiling for rspack build/bench cases. Includes optional samply import with per-CPU threads for visualization, but primary analysis is perf-based.
Install
mkdir -p .claude/skills/rspack-perf-profiling && curl -L -o skill.zip "https://mcp.directory/api/skills/download/3271" && unzip -o skill.zip -d .claude/skills/rspack-perf-profiling && rm skill.zipInstalls to .claude/skills/rspack-perf-profiling
About this skill
Rspack Perf Profiling
Overview
Profile Rspack builds on Linux using perf with DWARF call graphs, capture kernel + user stacks, and analyze hotspots directly from perf.data. Optionally import into samply for per-CPU threads visualization.
Workflow
1) Build profiling-enabled binding (once per code change)
pnpm run build:binding:profiling
2) Enable kernel symbols (recommended)
echo 0 | sudo tee /proc/sys/kernel/kptr_restrict
echo 1 | sudo tee /proc/sys/kernel/perf_event_paranoid
Optional: install vmlinux debug symbols or pass a vmlinux path to perf report.
3) Record perf profile (example: react-10k case)
# if benchmark repo isn't present yet (clone alongside rspack, not inside it)
git -c http.lowSpeedLimit=1 -c http.lowSpeedTime=600 \
clone https://github.com/rstackjs/build-tools-performance.git \
../build-tools-performance
# install benchmark deps (required for react-10k)
pnpm -C ../build-tools-performance install
# link local rspack core so cases can resolve @rspack/core
pnpm -C ../build-tools-performance add -w @rspack/core@link:../rspack/packages/rspack
(
cd ../build-tools-performance/cases/react-10k || exit 1
perf record -o ./perf.data \
-e cycles:uk -F 4000 --call-graph dwarf -- \
node --perf-prof --perf-basic-prof --interpreted-frames-native-stack \
../../../rspack/packages/rspack-cli/bin/rspack.js \
-c ./rspack.config.mjs
)
Notes:
cycles:ukcaptures user + kernel cycles.- Increase
-Ffor higher sample density; expect large perf.data. - Ensure
--call-graph dwarffor readable Rust stacks.
4) Analyze perf.data (perf-based)
Top hotspots (flat view):
perf report -i ../build-tools-performance/cases/react-10k/perf.data \
--stdio --no-children -g none --percent-limit 0.5 | head -n 100
Callgraph (if needed):
perf report -i ../build-tools-performance/cases/react-10k/perf.data \
--stdio --no-children -g graph,0.5,caller,function,percent | head -n 120
5) Optional: import into samply with per-CPU threads
samply import ../build-tools-performance/cases/react-10k/perf.data \
--per-cpu-threads -o ../build-tools-performance/cases/react-10k/perf.profile.json.gz \
--no-open
Use this only for visualization; keep analysis perf-first.
Variants
- For other cases, swap
-c <case>/rspack.config.js. - For heavier workloads, wrap the rspack command in a loop to amplify time.
- If kernel symbols are still missing, pass
-k /path/to/vmlinuxto perf report.
More by web-infra-dev
View all skills by web-infra-dev →You might also like
flutter-development
aj-geddes
Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.
drawio-diagrams-enhanced
jgtolentino
Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.
ui-ux-pro-max
nextlevelbuilder
"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."
godot
bfollington
This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.
nano-banana-pro
garg-aayush
Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.
fastapi-templates
wshobson
Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.
Related MCP Servers
Browse all serversUse Chrome DevTools for web site test speed, debugging, and performance analysis. The essential chrome developer tools f
Run a ping test worldwide with Globalping. Diagnose connectivity issues using Cloudflare Workers for accurate network tr
Process Excel files efficiently: read sheet names, extract data, and cache workbooks for large files using tools like pd
High-performance Arch Linux MCP server — Model Context Protocol implementation for lightweight, secure, and custom deplo
Hydrolix connects to time series databases for fast, secure analysis of large-scale log, metric & IoT data using ClickHo
Track your crypto portfolio with OKX. Access portfolio performance, trading positions & order history using this leading
Stay ahead of the MCP ecosystem
Get weekly updates on new skills and servers.