Profiling AL performance with snapshot debugger

Important

This content is archived and is not being updated. For the latest documentation, go to What's new and planned for Dynamics 365 Business Central. For the latest release plans, go to Dynamics 365 and Microsoft Power Platform release plans.

Enabled for Public preview General availability
Admins, makers, marketers, or analysts, automatically Aug 1, 2021 Oct 1, 2021

Business value

Performance is top of mind for most customers, especially in the world of online business. Until now, apart from selected, reactive telemetry allowing monitoring of customer tenants, there has not been a proactive way to measure execution performance during development nor when troubleshooting specific customer support cases with performance issues. To address this, we are introducing the ability to capture execution timing as part of a snapshot, and investigate this in Visual Studio Code when replaying the snapshot.

Feature details

Snapshot captures now include a performance profile of the executed code that is captured in the snapshot. Using a new performance profiling editor view in the AL Visual Studio Code extension, developers can then investigate the time spent on execution, either using top-down or bottom-up call stack views.

See also

AL Profiler Overview (docs)