In the evolving landscape of Business Central, performance profiling has become a cornerstone for identifying and resolving application performance issues. With the introduction of the in-client profiler three releases ago, users have been equipped with a powerful tool to investigate performance across extensions.
However, the interactive nature of this tool often required well-defined reproduction steps and collaboration among various stakeholders. To address these challenges, Microsoft introduced a new feature that simplifies and automates performance profiling through rule-based scheduling.
Business Value
The in-client profiler has proven indispensable for customers, partners, and support teams, becoming the primary tool for performance troubleshooting. Despite its effectiveness, the interactive capture process could be time-consuming and required significant manual effort.
Microsoft’s latest release aims to streamline this process, making it easier and faster for all users to capture performance profiles. By enabling automatic and non-interactive profiling based on predefined rules, we reduce the need for manual collaboration and expedite the time to mitigate performance issues.
Feature Details
The new rule-based scheduling mode complements the existing interactive profiling method. Users can now set up specific rules to capture performance profiles in the background, triggered by defined conditions. This enhancement allows customer admins, consultants, support personnel, and developers to schedule profiling sessions without manual intervention.

How It Works
- Setting Up a Profile Rule Schedule:
- Navigate to the Profiler Schedules page to view and manage your schedules
- Create a new schedule by defining the necessary rules and settings
- Defining Schedule Rules:
- Enabled: Toggle to enable or disable the schedule
- Start and End Time: Specify the active duration for the schedule
- Description: Add a custom description for the schedule
- User ID: Choose to capture profiles for a specific user
- Activity Type: Select the activity type that triggers profiling (e.g., background tasks or browser activity)
- Sampling Frequency: Set the sampling frequency for profile captures, similar to the existing interactive profiler
- Profile Creation Threshold: Define the minimum duration for a profile to be saved
- Retention Period: Determine how long the captured profiles should be retained
Example Scenario
Consider setting up a schedule to capture profiles for a user’s browser activity over five days. Once the schedule is defined and enabled, the server will automatically trigger profiling sessions based on the specified rules.

At the end of the duration, you can review the captured profiles in the Performance Profiles list page, similar to the interactive profiler.

Conclusion
The new rule-based scheduling feature in Business Central significantly enhances the performance profiling process. By automating profile captures based on predefined rules, we empower users to identify and resolve performance issues more efficiently. This update underscores our commitment to providing powerful, user-friendly tools that streamline operations and improve overall performance.
The post Streamlining Performance Profiling in Business Central with Rule-Based Scheduling appeared first on Dynamics Communities.