/perf-profile
Profile application performance: code execution time, DB call time, and bottleneck identification at both the application and database layer.
Step 1: Identify the target
Ask the user (or infer from context): what are we profiling?
- A specific endpoint / route
- A background job / worker
- A specific function or module
- The whole application (general audit)
Step 2: DB call time profiling
PostgreSQL
# Enable timing in psql
psql "$DATABASE_URL" -c "\timing o
[Description truncada. Veja o README completo no GitHub.]