Skip to content

borghei/Claude-Skills / engineering/performance-profiler

performance-profiler

Verified

Performance profiling for Node.js, Python, and Go: CPU flamegraphs, memory leak detection, bundle analysis, query optimization, and k6 load testing. Use when diagnosing slow endpoints, memory growth, large bundles, or traffic spikes.

assets/sample_request_log.json

View on GitHub
[
 {
  "endpoint": "GET /orders",
  "duration_ms": 850,
  "queries": [
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM orders WHERE customer_id = ?",
    "duration_ms": 9
   }
  ],
  "spans": [
   {
    "name": "payments-api",
    "type": "http",
    "duration_ms": 420
   }
  ]
 },
 {
  "endpoint": "GET /health",
  "duration_ms": 5,
  "queries": []
 },
 {
  "endpoint": "GET /health",
  "duration_ms": 6,
  "queries": []
 },
 {
  "endpoint": "GET /orders",
  "duration_ms": 865,
  "queries": [
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM orders WHERE customer_id = ?",
    "duration_ms": 9
   }
  ],
  "spans": [
   {
    "name": "payments-api",
    "type": "http",
    "duration_ms": 420
   }
  ]
 },
 {
  "endpoint": "GET /health",
  "duration_ms": 5,
  "queries": []
 },
 {
  "endpoint": "GET /health",
  "duration_ms": 6,
  "queries": []
 },
 {
  "endpoint": "GET /orders",
  "duration_ms": 880,
  "queries": [
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM orders WHERE customer_id = ?",
    "duration_ms": 9
   }
  ],
  "spans": [
   {
    "name": "payments-api",
    "type": "http",
    "duration_ms": 420
   }
  ]
 },
 {
  "endpoint": "GET /health",
  "duration_ms": 5,
  "queries": []
 },
 {
  "endpoint": "GET /health",
  "duration_ms": 6,
  "queries": []
 },
 {
  "endpoint": "GET /orders",
  "duration_ms": 895,
  "queries": [
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM orders WHERE customer_id = ?",
    "duration_ms": 9
   }
  ],
  "spans": [
   {
    "name": "payments-api",
    "type": "http",
    "duration_ms": 420
   }
  ]
 },
 {
  "endpoint": "GET /health",
  "duration_ms": 5,
  "queries": []
 },
 {
  "endpoint": "GET /health",
  "duration_ms": 6,
  "queries": []
 },
 {
  "endpoint": "GET /orders",
  "duration_ms": 910,
  "queries": [
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM orders WHERE customer_id = ?",
    "duration_ms": 9
   }
  ],
  "spans": [
   {
    "name": "payments-api",
    "type": "http",
    "duration_ms": 420
   }
  ]
 },
 {
  "endpoint": "GET /health",
  "duration_ms": 5,
  "queries": []
 },
 {
  "endpoint": "GET /health",
  "duration_ms": 6,
  "queries": []
 },
 {
  "endpoint": "GET /orders",
  "duration_ms": 925,
  "queries": [
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM orders WHERE customer_id = ?",
    "duration_ms": 9
   }
  ],
  "spans": [
   {
    "name": "payments-api",
    "type": "http",
    "duration_ms": 420
   }
  ]
 },
 {
  "endpoint": "GET /health",
  "duration_ms": 5,
  "queries": []
 },
 {
  "endpoint": "GET /health",
  "duration_ms": 6,
  "queries": []
 },
 {
  "endpoint": "GET /orders",
  "duration_ms": 940,
  "queries": [
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM orders WHERE customer_id = ?",
    "duration_ms": 9
   }
  ],
  "spans": [
   {
    "name": "payments-api",
    "type": "http",
    "duration_ms": 420
   }
  ]
 },
 {
  "endpoint": "GET /health",
  "duration_ms": 5,
  "queries": []
 },
 {
  "endpoint": "GET /health",
  "duration_ms": 6,
  "queries": []
 },
 {
  "endpoint": "GET /orders",
  "duration_ms": 955,
  "queries": [
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM orders WHERE customer_id = ?",
    "duration_ms": 9
   }
  ],
  "spans": [
   {
    "name": "payments-api",
    "type": "http",
    "duration_ms": 420
   }
  ]
 },
 {
  "endpoint": "GET /health",
  "duration_ms": 5,
  "queries": []
 },
 {
  "endpoint": "GET /health",
  "duration_ms": 6,
  "queries": []
 },
 {
  "endpoint": "GET /orders",
  "duration_ms": 970,
  "queries": [
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM orders WHERE customer_id = ?",
    "duration_ms": 9
   }
  ],
  "spans": [
   {
    "name": "payments-api",
    "type": "http",
    "duration_ms": 420
   }
  ]
 },
 {
  "endpoint": "GET /health",
  "duration_ms": 5,
  "queries": []
 },
 {
  "endpoint": "GET /health",
  "duration_ms": 6,
  "queries": []
 },
 {
  "endpoint": "GET /orders",
  "duration_ms": 985,
  "queries": [
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM order_items WHERE order_id = ?",
    "duration_ms": 6
   },
   {
    "template": "SELECT * FROM orders WHERE customer_id = ?",
    "duration_ms": 9
   }
  ],
  "spans": [
   {
    "name": "payments-api",
    "type": "http",
    "duration_ms": 420
   }
  ]
 },
 {
  "endpoint": "GET /health",
  "duration_ms": 5,
  "queries": []
 },
 {
  "endpoint": "GET /health",
  "duration_ms": 6,
  "queries": []
 }
]
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 322kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 322kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 322kUpdated Claude CodeCodexVerifiedInstall
skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.Stars: 198kUpdated Claude CodeCodexVerifiedInstall