profiling

Identify performance bottlenecks using representative measurement evidence and baseline comparisons.

4|Updated May 16, 2026
Ready to run
npx skills add https://github.com/machenjie/rd-skills --skill profiling-machenjie
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: profiling
Source: https://github.com/machenjie/rd-skills/tree/main/src/foundation/capabilities/profiling
Command: npx skills add https://github.com/machenjie/rd-skills --skill profiling-machenjie

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you locate the real performance bottleneck using evidence-based measurement so optimization targets the actual constraint instead of intuition.

Core Features & Use Cases

  • Evidence-first bottleneck identification: Pinpoints CPU, memory/GC pressure, I/O wait, lock contention, database query cost, network fan-out, and rendering work using representative measurements.
  • Representative baseline + before/after verification: Establishes a locked baseline under the same workload, concurrency, and environment, then validates changes with quantified comparisons.
  • Safety and privacy guardrails: Prevents profiling artifacts from capturing sensitive data by requiring normalization and redaction practices.

What To Do (How It Helps You)

Use it when a service or endpoint is slower than budget, p99 latency regresses, CPU is high without a traffic increase, memory/GC pressure rises, query cost spikes, network fan-out grows, or frontend Core Web Vitals fail and you need evidence for where time is going.

Quick Start

Ask the agent to produce a profiling report by stating the symptom, forming an initial hypothesis, defining a representative workload and baseline metrics, and then documenting the measured evidence and the confirmed bottleneck classification with before/after results.

Frequently Asked Questions about profiling

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

FAQPage Schema
How do I identify real performance bottlenecks instead of guessing?▼

Identifying real performance bottlenecks requires collecting representative measurement evidence before optimizing, targeting actual constraints like CPU, memory, lock contention, or database query cost instead of relying on intuition.

What steps are needed to investigate p99 latency regression and high CPU?▼

Investigating p99 latency regression or high CPU involves stating the symptom, forming a hypothesis, defining a representative workload, locking a baseline metric, and validating fixes with quantified before/after verification.

Can I profile lock contention and database query costs in production safely?▼

Yes, you can safely profile lock contention and database query costs in production by enforcing privacy guardrails that require normalization and redaction practices, preventing profiling artifacts from capturing sensitive data.

Does evidence-based bottleneck analysis work for frontend Core Web Vitals regressions?▼

Yes, evidence-based bottleneck analysis works for frontend Core Web Vitals regressions by measuring representative rendering work and network fan-out, establishing a locked baseline, and applying corrective fixes matched to the confirmed bottleneck class.

When should I not use intuition-based optimization for memory pressure?▼

You should avoid intuition-based optimization for memory or GC pressure when lacking a locked baseline, as applying corrective fixes without quantified before/after verification under consistent workload settings risks targeting the wrong constraint.