Request Details

Route
/api_complex GET
Timestamp
Nov 21, 2026 8:04 PM
Duration
185.25 ms
Status
200
Response Size
53 KB
Error
No

Performance Breakdown

Database
12.8% (5 queries)
View Rendering
20.4%
Application Logic
66.8%
Other Operations
0.0%
Total Operations
12
Slowest Operation
185.25 ms

Request Trace

How to read this

Each row is a layer of your stack. Many short Database bars means N+1 queries — fix with includes(). A wide Action bar with little Database time means slow Ruby code. A wide View bar usually means a partial rendered in a loop.

Action
View
Database
Other
Action
View
Database
0.0ms 138.6ms 277.3ms 415.9ms 554.5ms

Operations

How to use this

Sort by Impact to find your biggest wins. Click any row for details and optimisation suggestions. The same SQL appearing multiple times is an N+1 — fix with includes(). A single operation above 50% impact is your highest priority.

Operation Duration Impact Timeline Actions
SELECT id, name, email FROM users WHERE id = ? 14 ms 7.6%
SELECT name FROM users 33 ms 17.8%
SELECT name FROM users 2 ms 1.1%
users/index 14 ms 7.6%
home#api_complex 185 ms 100.0%
home/index 5 ms 2.7%
home#api_complex 185 ms 100.0%
layouts/application 23 ms 12.4%
layouts/application 39 ms 21.1%
DELETE FROM posts WHERE id = ? 17 ms 9.2%
posts/show 32 ms 17.3%
SELECT COUNT(*) FROM comments WHERE post_id = ? 5 ms 2.7%