# Heatpump::StatsController#index

- **Period:** 27 Jun 14:23 UTC – 27 Jun 16:22 UTC
- **Throughput**: 0.07 / min
- **Average:** 60.1 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| sql | app/lib/sensor/query/helpers/sql/total.rb:173 | 16.63 | 1.0 | 27.67% | `WITH price_ranges AS ( SELECT name, starts_at, LEAD(starts_at, ?, ?::date) OVER…` |
| view | app/views/heatpump/stats/index.turbo_stream.slim | 14.38 | 1.0 | 23.93% |  |
| code | app/controllers/heatpump/stats_controller.rb:7 | 6.13 | 1.0 | 10.19% | `Heatpump::StatsController#index` |
| gc | ruby/gc.c | 6.67 | 0.75 | 8.32% | `GC.start` |
| sql | app/models/summary.rb:67 | 4.88 | 1.0 | 8.11% | `SELECT gs.date FROM generate_series(?, ?, ?::interval) AS gs(date) LEFT JOIN su…` |
| redis | /usr/local/bundle/gems/activesupport-8.1.3/lib/active_support/cache/redis_cache_store.rb:464 | 3.0 | 1.0 | 4.99% | `pipeline` |
| rack | /usr/local/bundle/gems/actionpack-8.1.3/lib/action_dispatch/middleware/static.rb:26 | 1.88 | 1.0 | 3.12% | `ActionDispatch::Static` |
| redis | app/lib/sensor/definitions/describable.rb:15 | 1.63 | 1.0 | 2.70% | `get` |
| rack | /usr/local/bundle/gems/actionpack-8.1.3/lib/action_dispatch/http/content_security_policy.rb:37 | 1.25 | 1.0 | 2.08% | `ActionDispatch::ContentSecurityPolicy::Middleware` |
| rack | /usr/local/bundle/gems/http_accept_language-2.1.1/lib/http_accept_language/middleware.rb:7 | 1.25 | 1.0 | 2.08% | `HttpAcceptLanguage::Middleware` |
| rack | /usr/local/bundle/gems/railties-8.1.3/lib/rails/rack/logger.rb:20 | 0.63 | 1.0 | 1.04% | `Rails::Rack::Logger` |

[View on RoRvsWild ↗](https://www.rorvswild.com/applications/136101/requests/Heatpump::StatsController%23index?range=2026-06-27+14%3A23%3A13+UTC..2026-06-27+16%3A22%3A59+UTC)