cpu-profiling
CPU使用率を分析して処理のボトルネックとなっている箇所を特定し、最もCPU時間を使っているコードを最適化することで、プログラムの性能向上やリソース効率化を実現するSkill。
📜 元の英語説明(参考)
Profile CPU usage to identify hot spots and bottlenecks. Optimize code paths consuming most CPU time for better performance and resource efficiency.
🇯🇵 日本人クリエイター向け解説
CPU使用率を分析して処理のボトルネックとなっている箇所を特定し、最もCPU時間を使っているコードを最適化することで、プログラムの性能向上やリソース効率化を実現するSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o cpu-profiling.zip https://jpskill.com/download/21382.zip && unzip -o cpu-profiling.zip && rm cpu-profiling.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/21382.zip -OutFile "$d\cpu-profiling.zip"; Expand-Archive "$d\cpu-profiling.zip" -DestinationPath $d -Force; ri "$d\cpu-profiling.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
cpu-profiling.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
cpu-profilingフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 5
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
[Skill 名] cpu-profiling
CPU プロファイリング
目次
概要
CPU プロファイリングは、どの関数が最も CPU 時間を消費しているかを特定し、コストのかかるコードパスの的を絞った最適化を可能にします。
使用する状況
- 高い CPU 使用率
- 遅い実行速度
- パフォーマンスの低下
- 最適化の前
- 本番環境の監視
クイックスタート
最小限の動作例:
Browser Profiling:
Chrome DevTools:
Steps:
1. DevTools → Performance
2. Click record
3. Perform action
4. Stop recording
5. Analyze flame chart
Metrics:
- Function call duration
- Call frequency
- Total time vs self time
Firefox Profiler:
- Built-in performance profiler
- Flame graphs
- Timeline view
- Export and share
React Profiler:
- DevTools → Profiler
- Component render times
- Phase: render vs commit
- Why component re-rendered
// ... (see reference guides for full implementation)
リファレンスガイド
references/ ディレクトリ内の詳細な実装:
| ガイド | 内容 |
|---|---|
| Profiling Tools | プロファイリングツール |
| Analysis & Interpretation | 分析と解釈 |
| Optimization Process | 最適化プロセス |
| Monitoring & Best Practices | 監視とベストプラクティス |
ベストプラクティス
✅ DO
- 確立されたパターンと慣例に従ってください
- クリーンで保守しやすいコードを記述してください
- 適切なドキュメントを追加してください
- デプロイ前に徹底的にテストしてください
❌ DON'T
- テストや検証をスキップしないでください
- エラー処理を無視しないでください
- 設定値をハードコードしないでください
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
CPU Profiling
Table of Contents
Overview
CPU profiling identifies which functions consume most CPU time, enabling targeted optimization of expensive code paths.
When to Use
- High CPU usage
- Slow execution
- Performance regression
- Before optimization
- Production monitoring
Quick Start
Minimal working example:
Browser Profiling:
Chrome DevTools:
Steps:
1. DevTools → Performance
2. Click record
3. Perform action
4. Stop recording
5. Analyze flame chart
Metrics:
- Function call duration
- Call frequency
- Total time vs self time
Firefox Profiler:
- Built-in performance profiler
- Flame graphs
- Timeline view
- Export and share
React Profiler:
- DevTools → Profiler
- Component render times
- Phase: render vs commit
- Why component re-rendered
// ... (see reference guides for full implementation)
Reference Guides
Detailed implementations in the references/ directory:
| Guide | Contents |
|---|---|
| Profiling Tools | Profiling Tools |
| Analysis & Interpretation | Analysis & Interpretation |
| Optimization Process | Optimization Process |
| Monitoring & Best Practices | Monitoring & Best Practices |
Best Practices
✅ DO
- Follow established patterns and conventions
- Write clean, maintainable code
- Add appropriate documentation
- Test thoroughly before deploying
❌ DON'T
- Skip testing or validation
- Ignore error handling
- Hard-code configuration values
同梱ファイル
※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。
- 📄 SKILL.md (2,010 bytes)
- 📎 references/analysis-interpretation.md (724 bytes)
- 📎 references/monitoring-best-practices.md (1,169 bytes)
- 📎 references/optimization-process.md (1,343 bytes)
- 📎 references/profiling-tools.md (846 bytes)