Skip to main content

rbspy

Use this skill when the user wants to profile Ruby CPU usage — sample a running process, record stack traces, or generate flamegraphs without modifying the Ruby app.

소스 정보

저장소
javimosch/supercli
최근 소스 활동
2026년 7월 20일 23:56
감지된 SKILL.md 언어
영어
스타
51
포크
7

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
rbspy
description
Use this skill when the user wants to profile Ruby CPU usage — sample a running process, record stack traces, or generate flamegraphs without modifying the Ruby app.
# rbspy Plugin Sampling CPU profiler for Ruby. Attaches to running Ruby processes (MRI, JRuby, TruffleRuby) and records stack samples with minimal overhead — ideal for production flamegraphs and call-graph analysis. ## Installation ```bash curl -L https://raw.githubusercontent.com/rbspy/rbspy/main/install.sh | sh # or cargo install rbspy ``` ## Basic Usage ```bash # Profile a Ruby script by PID rbspy record --pid 12345 --duration 30 # Profile a command directly rbspy record -- ruby my_app.rb # Live top-like view of hot methods rbspy top --pid 12345 # Generate a flamegraph SVG rbspy record --format flamegraph --output profile.svg -- ruby server.rb ``` ## Common Patterns ```bash # Sample for 60 seconds, write raw data rbspy record --duration 60 --file profile.gz --pid $(pgrep -f puma) # Subprocess profiling with rate control rbspy record --rate 100 -- bundle exec rails server # Show version and supported Ruby versions rbspy --version ``` ## Usage Examples - "Profile my Rails server and find slow methods" - "Generate a flamegraph for this Ruby worker" - "See which methods use the most CPU in PID 9999" ## SuperCLI ```bash sc rbspy _ _ record --pid 12345 --duration 30 sc rbspy _ _ top --pid 12345 sc plugins learn rbspy ```
GitHub에서 보기