Skip to content
Modx3ProfilerToolbar
Modx3ProfilerToolbar
Performance toolbar for MODX 3 — request metrics, slow components, timeline and SQL without admin
  1. Extras
  2. Modx3ProfilerToolbar
  3. System settings

System settings

All settings use the prefix modx3profilertoolbar. and are in the modx3profilertoolbar namespace.

Where to change: Manage → System settings (in MODX 3: Settings → System settings) — filter by namespace modx3profilertoolbar.

Settings table

SettingDescriptionDefaultNotes
modx3profilertoolbar.enabledEnable or disable profilingNoEnable on dev/staging; on production use sampling 1–5%.
modx3profilertoolbar.sampling_ratePercent of requests to profile (1–100)100Dev: 100; production: 1–5.
modx3profilertoolbar.frontend_toolbarShow Dev Toolbar on frontend (web context)YesFor developers only; disable on production. Toolbar visible only when logged into Manager.
modx3profilertoolbar.slow_query_msThreshold (ms) above which SQL is considered slow100Advisor marks such queries.
modx3profilertoolbar.slow_snippet_msThreshold (ms) for slow snippets50Advisor marks such snippets.
modx3profilertoolbar.cli_enabledProfile CLI requests (cron)NoEnable only when debugging CLI.

Security

The profiler exposes sensitive data: SQL, snippet and plugin names.

  • Toolbar is shown only to users logged into the Manager. Restrict admin access.
  • On production use sampling 1–5%.

Environment

AspectDevelopment / StagingProduction
enabledYesAs needed (with sampling)
sampling_rate1001–5
frontend_toolbarOptionalNo
cli_enabledWhen debugging cronNo