Dela via


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

  1. Click Tools > Code profiler to open the Code Profiler tool.

  2. 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.

  3. Click Start.

  4. Use the functionality you want to test.

  5. 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.

  6. 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.

  7. Click OK.

    The Profiler runs form opens. This enables you to view data collected by the profiler.

    Note

    You can also use the code profiler from a programmatic interface.

See also

Code Profiler

How to: View Data Collected by the Code Profiler

Announcements: New book: "Inside Microsoft Dynamics AX 2012 R3" now available. Get your copy at the MS Press Store.