← Back to Skills Marketplace
afine907

Performance Profiling

by afine907 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
44
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install performance-profiling
Description
性能分析速查。当需要:(1) Python 性能分析 (2) Node.js 性能分析 (3) 数据库优化 (4) 系统性能监控时使用。
README (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

# 字符串拼接
result = "".join(strings)   # 而非 for + loop

# 使用生成器
result = (x for x in range(1000000))

# 内置函数更快
total = sum(numbers)

数据库

  • 添加合适索引
  • 避免全表扫描
  • 使用 EXPLAIN 分析
  • 缓存热点数据

文档

Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install performance-profiling
  3. After installation, invoke the skill by name or use /performance-profiling
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release
Metadata
Slug performance-profiling
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Performance Profiling?

性能分析速查。当需要:(1) Python 性能分析 (2) Node.js 性能分析 (3) 数据库优化 (4) 系统性能监控时使用。 It is an AI Agent Skill for Claude Code / OpenClaw, with 44 downloads so far.

How do I install Performance Profiling?

Run "/install performance-profiling" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Performance Profiling free?

Yes, Performance Profiling is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Performance Profiling support?

Performance Profiling is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Performance Profiling?

It is built and maintained by afine907 (@afine907); the current version is v1.0.0.

💬 Comments