← 返回 Skills 市场
44
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install performance-profiling
功能描述
性能分析速查。当需要:(1) Python 性能分析 (2) Node.js 性能分析 (3) 数据库优化 (4) 系统性能监控时使用。
使用说明 (SKILL.md)
Performance Profiling
性能分析和调优工具速查。
快速参考
Python 分析
python -m cProfile script.py
python -m cProfile -s cumtime script.py
pip install py-spy && py-spy top --pid 12345
Node.js 分析
node --prof app.js
node --cpu-prof app.js
npm install -g clinic && clinic doctor -- node app.js
数据库
-- MySQL
EXPLAIN ANALYZE SELECT * FROM users WHERE name = 'Alice';
SHOW PROCESSLIST;
-- PostgreSQL
EXPLAIN ANALYZE SELECT * FROM users WHERE name = 'Alice';
SELECT * FROM pg_stat_activity;
系统
top -o %CPU # CPU
iostat -x 1 # I/O
vmstat 1 # 综合
详细参考
- Python 分析: references/python.md - cProfile, line_profiler, py-spy
- Node.js 分析: references/nodejs.md - V8 分析, clinic.js
- 数据库优化: references/database.md - MySQL, PostgreSQL, Redis
- 系统性能: references/system.md - CPU, 内存, I/O
- Web 压测: references/load-test.md - ab, wrk, hey
常见优化
Python
# 字符串拼接
result = "".join(strings) # 而非 for + loop
# 使用生成器
result = (x for x in range(1000000))
# 内置函数更快
total = sum(numbers)
数据库
- 添加合适索引
- 避免全表扫描
- 使用 EXPLAIN 分析
- 缓存热点数据
文档
- Python profiling: https://docs.python.org/3/library/profile.html
- clinic.js: https://clinicjs.org/
- FlameGraph: https://www.brendangregg.com/flamegraphs.html
安全使用建议
This skill appears safe as a profiling reference. Before running any copied commands, confirm the target system, database, or URL is yours or authorized, avoid production-impacting actions without approval, and verify any third-party tools before installing them.
功能分析
Type: OpenClaw Skill
Name: performance-profiling
Version: 1.0.0
The performance-profiling skill bundle is a legitimate collection of reference materials and commands for diagnostic purposes. It provides standard industry tools and snippets for Python (cProfile, py-spy), Node.js (clinic.js, V8 profiling), databases (MySQL/PostgreSQL EXPLAIN), and Linux system monitoring (top, iostat, sar). No evidence of malicious intent, data exfiltration, or prompt injection was found; all content is strictly aligned with the stated goal of performance tuning.
能力评估
Purpose & Capability
The artifacts consistently describe Python, Node.js, database, load-testing, and system performance profiling references; no hidden or contradictory capability is shown.
Instruction Scope
The instructions are mainly command examples, but some examples can modify database/server state, terminate database sessions, or generate load, so they should be user-approved and run only on authorized systems.
Install Mechanism
There is no skill install script or bundled executable code, but the reference docs suggest optional third-party installs such as pip, npm, go install, and git clone commands.
Credentials
System, process, database, and load-test commands are proportionate to performance profiling, but they can expose operational details or stress services if used carelessly.
Persistence & Privilege
The skill itself has no persistence or requested privileges, but examples include global package installs and database/global settings that may have lasting effects when manually executed.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install performance-profiling - 安装完成后,直接呼叫该 Skill 的名称或使用
/performance-profiling触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release
元数据
常见问题
Performance Profiling 是什么?
性能分析速查。当需要:(1) Python 性能分析 (2) Node.js 性能分析 (3) 数据库优化 (4) 系统性能监控时使用。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 44 次。
如何安装 Performance Profiling?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install performance-profiling」即可一键安装,无需额外配置。
Performance Profiling 是免费的吗?
是的,Performance Profiling 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Performance Profiling 支持哪些平台?
Performance Profiling 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Performance Profiling?
由 afine907(@afine907)开发并维护,当前版本 v1.0.0。
推荐 Skills