
- MODX 3
- PHP 8.1


Short guide to enabling the toolbar and reading metrics.
mgr context) — the toolbar is shown only when logged into admin.The Dev Toolbar panel appears in the bottom-right. Labels are localized (ru/en/uk) from MODX lexicons.
All stats are collected on the server during the request; there is no separate AJAX request for metrics.
</body> and loads toolbar.js. The script renders the panel.Data is for the current request and is embedded in the HTML.
Compact line with main metrics:
⏱ 412 ms 🧠 42 MB 🧩 18 snippets 🛢 34 SQL| Symbol | Metric |
|---|---|
| ⏱ | Total request time (ms) |
| 🧠 | Peak memory (MB) |
| 🧩 | Number of snippets run |
| 🛢 | Number of SQL queries |
Click the panel to expand with tabs.
Metrics with color coding (time in ms):
Colors: 🟢 Green — good (< 200 ms). 🟡 Yellow — acceptable (200–500 ms). 🔴 Red — needs optimization (> 500 ms).
Top slowest components: Snippet/Chunk/Plugin with time in ms and cached/uncached. Use for optimization hints.
Horizontal waterfall of MODX events; bar length is proportional to time.
List of SQL queries with time, call count, and ⚠️ Possible N+1 when N+1 is suspected.