Diagnose and optimize client performance
You can use various browser-based tools and the Performance timer tool to diagnose and optimize client performance of finance and operations apps.
Diagnose and optimize client performance by using browser-based tools
To optimize the performance of forms and diagnose any potential issues, you can use browser-based tools, such as Fiddler Classic, the Developer tools option in your browser, and Trace parser. You can test your form's performance in a browser by setting the form as a startup object and previewing the form in a browser window.
When you troubleshoot service authentication issues, a few basic and common procedures can help resolve the issues that are most often encountered. Poorly performing forms can slow down a system, degrading the user experience, and sometimes rendering a module unusable. Optimizing your forms for higher performance will ensure that your work is useful and appreciated by users. Fiddler Classic is a free web debugging proxy from Telerik that is used to diagnose authentication issues. It is customizable and uses a robust extensibility model, where you can run simple Fiddler Script tests or write your own test by using any .NET language. Fiddler Classic also has a timeline that shows the duration of a selected session so you can better understand how finance and operations apps is using your network. You can then use the performance analysis data to make adjustments to enhance order requests in finance and operations apps and optimize the network performance.
The F12 Developer tools are built into both Microsoft Edge and Google Chrome and provide a client-side view of the requests that are being made. You can open the Developer tools window by selecting F12 or Ctrl+Shift+i. On the Performance tab, you can record your scenario, such as loading the page or performing other actions within the page. When you have finished performing the action that you want to test, stop the recording and then perform an analysis. You will see a breakdown on time spent loading, scripting, and rendering the page. On the Network tab, you can capture ProcessMessage calls and analyze each call independently.
Trace parser is a desktop application that you install and run on your development machine, and it's used to analyze performance issues. You capture the trace itself from the finance and operations apps client. In the top-right corner of the application, select the Help & Support question mark button and then select Trace. Enter a name for your trace in the Trace name field, optionally set the Include SQL parameter value option to Yes, and then select Start trace. Next, perform the action that you want to analyze, such as loading a page or performing an action on a page. When you finish, select Stop trace. The trace is now available to be downloaded to your local machine or you can upload it to the cloud. The trace is analyzed by using the desktop version of Trace parser. Select the Captured traces button on the Trace page to manage or delete uploaded traces. Uploaded traces are automatically deleted after seven days.
Note
Each user account that captures and views traces must be assigned the System tracing user role in System administration > Users > Users. Because the Include SQL parameter value option can record application data in the trace, treat traces as securely as the production environment, and delete them when you finish your analysis.
You can also use Application Insights to monitor and diagnose an application that is running in a unified developer environment. For more information, see Monitoring and telemetry using Application Insights.
For more information on performance testing, see the modules that are listed in the Summary unit of this module.
Diagnose and optimize client performance by using Performance timer
Performance timer is a tool that aids in diagnosing performance
issues on the client and server. Performance timer is generated by
opening a web page with the added parameter debug=develop: https://<yoursite>.cloud.test.dynamics.com/en/?cmp=USMF&debug=develop.
The Performance timer will appear in the top-right corner of finance and
operations where you can see the separations between client time and
server time, as well as the total time when selecting a page. The Performance timer provides links for you to view information regarding forms, garbage collection, web client sessions, and services session providers.