Request Details

Route
/api_complex GET
Timestamp
Nov 09, 2026 1:14 PM
Duration
160.56 ms
Status
204
Response Size
56 KB
Error
No

Performance Breakdown

Database
13.5% (5 queries)
View Rendering
24.7%
Application Logic
61.9%
Other Operations
0.0%
Total Operations
17
Slowest Operation
160.56 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 194.7ms 389.3ms 584.0ms 778.7ms

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
posts/show 21 ms 13.1%
home#api_complex 161 ms 100.0%
users/index 9 ms 5.6%
home#api_complex 161 ms 100.0%
SELECT id, name, email FROM users WHERE id = ? 31 ms 19.3%
users/index 17 ms 10.6%
SELECT * FROM comments WHERE post_id = ? ORDER BY created_at DESC LIMIT ? 2 ms 1.2%
home#api_complex 161 ms 100.0%
layouts/application 25 ms 15.6%
SELECT * FROM users WHERE id = ? 34 ms 21.2%
home/index 31 ms 19.3%
home/index 30 ms 18.7%
posts/show 25 ms 15.6%
SELECT id, name, email FROM users WHERE id = ? 7 ms 4.4%
home/index 16 ms 10.0%
home/index 18 ms 11.2%
SELECT * FROM comments WHERE post_id = ? ORDER BY created_at DESC LIMIT ? 31 ms 19.3%