system-profile

Profiles scripts, processes, GPUs, memory, and interconnects to identify performance bottlenecks.

Updated Aug 18, 2026
One-click install
npx skills add https://github.com/Nitrogen216/awesome-dsh-mods --skill system-profile-nitrogen216
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: system-profile
Source: https://github.com/Nitrogen216/awesome-dsh-mods/tree/main/modes/dsh-autoresearch/vendor/aris-upstream/skills/system-profile
Command: npx skills add https://github.com/Nitrogen216/awesome-dsh-mods --skill system-profile-nitrogen216

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Diagnosing performance bottlenecks in scripts, running processes, and GPU workloads requires choosing the right profiling tools and often writing custom instrumentation, which is time-consuming and error-prone. ## Core Features & Use Cases - Multi-target profiling: Profile Python scripts, running processes by PID, specific functions, or entire frameworks like vLLM serving end-to-end. - Tool and instrumentation hybrid: Combines external tools (cProfile, py-spy, nvidia-smi, nsys, torch.profiler, NCCL debug) with custom code instrumentation for CPU-GPU transfer, memory allocation, and NCCL collective measurement. - Structured reporting: Produces bottleneck tables across CPU, memory, interconnect, and GPU compute dimensions, plus a mandatory changelog of all instrumentation edits for easy review and cleanup. - Use Case: Ask to profile a training script and receive hotspot analysis, GPU utilization metrics, communication-to-computation ratios, and ranked optimization recommendations. ## Quick Start Ask the agent to profile train.py and summarize the CPU, memory, and GPU bottlenecks with recommendations.

Frequently Asked Questions about system-profile

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I profile a Python script for performance bottlenecks?▼

Provide the script path as the target, and the profiler selects tools like cProfile, py-spy, or line_profiler to measure per-function execution time. Results are summarized into hotspot tables with ranked optimization recommendations.

How to profile GPU utilization and memory in PyTorch training?▼

GPU profiling uses nvidia-smi, nvitop, torch.profiler, or nsys to measure SM utilization, kernel launch overhead, and memory bandwidth. Custom instrumentation can also track CPU-GPU transfer volume and detect redundant memory replication.

Can I profile a running process by PID?▼

Yes, you can specify a PID or service name as the target. Tools like py-spy attach to running processes without restarting them, capturing stack samples and CPU usage for analysis.

Does profiling modify my source code?▼

Only when external tools are insufficient. Instrumentation prefers wrappers over inline edits, marks changes with comments, and produces a mandatory changelog listing every modified file so you can review and revert all changes.

What tools are used for NCCL and multi-GPU communication profiling?▼

NCCL collectives are analyzed using NCCL_DEBUG=INFO, nvidia-smi topo -m, and nvidia-smi nvlink to inspect topology and P2P bandwidth. Custom wrappers can measure collective latency, message sizes, and communication-to-computation ratio.