community postAL Developmentcommunity - not Microsoftreviewed - checked by Opus

One-Click Performance Analysis Inside Business Central

An open source extension adds an Analyze with AL Perf button to the Business Central Performance Profiler page. It sends the profile to an external analyzer that ranks hotspots, flags anti-patterns such as N+1-style repeated calls, method dominance, deep call stacks and event subscriber hotspots, and returns a plain-English explanation written by Claude. A companion web app also accepts AL source snapshots, which lets it detect unfiltered queries and missing SetLoadFields.

post SShadowS

Torben Leth · 2026-03-03 · 1,059 words · about 5 min

Key points

  • One button on the Performance Profiler page sends the recorded profile for analysis, and results appear in the client in about 20 to 30 seconds
  • Profile-only analysis flags single method dominance, repeated sibling calls (N+1), event subscriber hotspots and deep call stacks, each with a severity and a suggestion
  • Uploading the VS Code snapshot zip with AL source to the web app proves loop nesting and catches unfiltered record operations and missing SetLoadFields
  • The extension does the quick profile-only path, while the web app at alperf.sshadows.dk does the full analysis with source correlation
  • Profiles are sent over HTTPS, analyzed in memory and not stored on the server

Context

  • Features: Performance Profiler integration, AI-powered performance explanation, Anti-pattern detection, Call tree analysis, Source code correlation, N+1 query detection, Event subscriber hotspot detection, Unfiltered query detection

Source: SShadowS, community blog. Summary, key points and quotes are derived (CONTENT-NOTICE.md); read the original for the full text.