performance-profiling

Profile application performance across backend, Lambda, database, and frontend layers.

21|2|Updated Nov 5, 2023
One-click install
npx skills add https://github.com/sgcarstrends/sgcarstrends --skill performance-profiling-sgcarstrends
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: performance-profiling
Source: https://github.com/sgcarstrends/sgcarstrends/tree/main/.claude/skills/performance-profiling
Command: npx skills add https://github.com/sgcarstrends/sgcarstrends --skill performance-profiling-sgcarstrends

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you profile application performance across the stack, identify bottlenecks, and implement optimizations to reduce latency and resource usage.

Core Features & Use Cases

  • Lambda performance metrics: Collect duration, memory usage, and invocations to spot slow functions.
  • Query & API profiling: Timing, logs, and profiling for database calls and API routes.
  • Code optimization guidance: Practical steps to optimize hot paths and improve TTFB.

Quick Start

Run a quick performance profile of a sample API call and document the bottlenecks and suggested improvements.

Frequently Asked Questions about performance-profiling

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

FAQPage Schema
How do I identify performance bottlenecks across my application stack?

Performance profiling collects metrics across backend APIs, Lambda functions, database queries, and frontend rendering to pinpoint where latency occurs. Profile your application to measure p95 latency, cold start times, query duration, and bundle size, then compare against target thresholds to locate optimization opportunities.

How can I reduce Lambda cold start times and function duration?

Lambda performance profiling captures duration, memory usage, and invocation patterns to identify slow functions. Collect these metrics, analyze execution logs, and apply code optimizations to the hot paths identified in your profiling results.

What's the best way to profile database queries and API latency together?

Query and API profiling captures timing and logs for database calls and API routes in a single workflow. Profile your application end-to-end to correlate slow API responses with expensive database operations, then implement targeted optimizations based on the results.

Can I measure and optimize frontend metrics like time-to-first-byte and bundle size?

Yes, performance profiling covers frontend rendering metrics and bundle size adjustments across client layers. Collect TTFB and rendering data, enforce target thresholds for these metrics, and receive actionable guidance for frontend optimization.

How do I enforce performance thresholds and track compliance?

Performance profiling supports setting and enforcing target thresholds for p95 latency, TTFB, memory, and error rates. Profile your application, collect metrics against these targets, and generate reports to track compliance over time.

What resource usage metrics should I monitor for cloud and on-premises workloads?

Performance profiling captures memory usage, invocation counts, and latency metrics applicable to both cloud and client layers. Monitor these metrics to reduce resource consumption and identify optimization opportunities across your entire stack.