Business Central 2024 wave 2 (BC25): Set up easier in-client performance profiling with rules (Profiler Schedules)

Dynamics 365 Business Central

Hi, Readers.
The public preview for Dynamics 365 Business Central 2024 release wave 2 (BC25) is available. Learn more: Link.

I will continue to test and share some new features that I hope will be helpful.

Set up easier in-client performance profiling with rules:

Business value:

Three releases ago we launched the in-client profiler, a very powerful tool for investigating performance issues across extensions. Since then, profiling has become essential to identify application performance problems for customers, partners, and support, and it’s the main performance troubleshooting tool for partners.

However, due to its current nature of being an interactive capture, acquiring a performance profile requires well-defined repro steps and collaboration across stakeholders.

To make it easier and faster for customers, consultants, pro developers, partners and Microsoft support to capture a profile, and thereby lower manual collaboration and time-to-mitigate, this release will add the additional support for capturing performance profiles automatically and noninteractively in the background, based on well-defined rules triggering capture. Captured profile details can then be analyzed afterwards.

https://learn.microsoft.com/en-us/dynamics365/release-plan/2024wave2/smb/dynamics365-business-central/set-up-easier-in-client-performance-profiling-rules?wt.mc_id=DX-MVP-5004336

In Business Central 2021 wave 2 (BC19), Micorosft added the AL performance profiler to the Visual Studio Code AL experience. This feature is mainly for developers. The performance profiler has empowered pro developers to investigate performance as part of developing new functionality.
More details: Profiling AL performance with snapshot debugger (AL: Generate profile file)

In Business Central 2022 wave 1 (BC20), Microsoft are going to take this even further. The in-client performance profiler feature is available. Any user with permission can analyze performance issues in Business Central.

Active Apps: Shows the apps that where active during the recording. They were either running or called other apps. The duration represents the time you might save by removing an app.

Time Spent: Shows which apps were running during the recording. Durations are self-time. They show the length of activity but do not include time spent calling other apps.

Time Spent by Application Object:

Call Tree:

Test Video:

More details: Business Central 2022 wave 1 (BC20) new features: In-client performance profiler (Performance Profiler page)

With this wave (BC25), in addition to the existing interactive way of capturing a performance profile – by starting the profile, performing repro steps in the client, stopping the profiler and then analyzing the results – a new rule-based scheduling mode for capturing profiles in the background is added.

To create a new profile rule schedule, open the Profiler Schedules page.

When creating a new profile capture schedule,

You can define a number of rules and settings:

  • Enabled: Allows you to enable or disable the defined schedule.
  • Start and End Time: Sets the duration in schedule is active and can trigger profile captures.
  • Description: Add your own description of the profile schedule.
  • User ID: Choose whether the scheduling only captures profiles for a specific user.
  • Activity Type: Select the kind of activity that will trigger capturing profiles. It can be background tasks, or activity in the browser (such as opening a page).
  • Sampling frequency: Choose the sampling frequency used when capturing profiles. You can select the same options as in the existing interactive in-client performance profiler, or AL profiler in Visual Studio Code.
  • Profile creation threshold: Specify the minimum duration of the profile for it to be saved.
  • Retention period: Specify how long captured profiles for this schedule should be kept.

The following example shows how you can set up a schedule for capturing profiles for a specific users browser activity during 5 days.

Once profile schedules have been defined, enabled, and run, you can view all the captured profiles in the Performance Profiles list page, and open a selected profile for detailed analysis, similar to what’s known from the in-client performance profiler.

PS: You can also open Performance Profiles list page from the Profiler Schedules page

With this, a customer admin, consultant, support person or developer can set up a specific scheduled rule, for example, to profile as a given user and session type for a given duration. Once the rule is defined and enabled, the server will trigger a profile each time the rule is met. At the end of the duration, profiling will stop, and the results can be inspected to see if there are any performance issues, including intermittent or long running ones.

Great, give it a try!!!😁

END

Hope this will help.

Thanks for reading.

ZHU

コメント

Copied title and URL