In the previous Tips #33 (Snapshot Debugging: Run Code on Server and Debug in VS Code), we learn how to use the Snapshot Debugger. Now, with BC19 we have a new feature added – the “executionContext” property.
This new property has the following list of options:
1. Debug: No profile data is collected;
2. DebugAndProfile: Debug and profiling will occur;
3. Profile: Only profiles the session, ignores the snappoints.
In the following example we used the DebugAndProfile option.
When the snapshot file download is completed, we can run the AL: Generate profile file command, and we choose the respective downloaded file.
After this, our performance profile file will be downloaded and opened.
Now, we are able to trace the execution triggers, procedures, events and so on.
In this last image, we can see the time in milliseconds that took our function to run, and we can now understand the impact that our solution is having on performance.