Profiling

Make slow application code fast, or prove it cannot be: fix the workload and the target number, subtract database, downstream and I/O time to prove the cost is yours, sample the real process under load, read self time and call paths, not the function that feels slow, and change one thing at a time against measured variance. Covers wall-clock against CPU time, off-CPU and lock waits, and why a microbenchmark disagrees with production. Use when someone says "this function eats 400ms in a hot loop", "profile this python function", "the endpoint is slow and the database only accounts for a fraction of it", or "is this cpu bound". Not for a slow query, which is sql-performance; not for a frame budget, which is game-performance; not for adding spans or metrics, which is instrumentation; not for comparing two implementations (benchmark-methodology); not for sizing for a peak, which is capacity-planning; not for a wrong answer or a memory climb, which are debugging.

greenblacked Updated
The twenty-nine plugins: coding, family, gamedev, operations, delivery, security, manager, personal, career, design, llm, data, techdocs, assurance, client-apps

File contents

greenblacked/AI commit 2bd17bfa38

Frequently asked questions

npx get-skill add greenblacked/profiling