How to: Use the Code Profiler
Applies To: Microsoft Dynamics AX 2012 R3, Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012
Click Tools > Code profiler to open the Code Profiler tool.
Navigate to the functionality that you want to test. For example, navigate to the appropriate place in the Navigation Pane.
To limit the results displayed, check the Trace depth enabled check box, and then type the number of levels that you want to be displayed in the results.
Use the functionality you want to test.
When testing is complete, click Stop. The system now saves all logged data to the database. This might take quite some time because a database record is created for each executed line of code.
Write a description of your code profile in the Summary dialog.
Do not select the Calculate line total check box. If you need to calculate line totals later, use the Profile runs form.
The Profiler runs form opens. This enables you to view data collected by the profiler.
You can also use the code profiler from a programmatic interface.
Announcements: New book: "Inside Microsoft Dynamics AX 2012 R3" now available. Get your copy at the MS Press Store.