web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

How and when to use Code Profiler

(0) ShareShare
ReportReport
Posted on by 56

Dear All,

I am new in to code profiler. Can you please let me know step by step

1. how to use and

2.when used Code Profiler ?

3. What is the advantage of Code Profiler?

4. What is the difference between Trace Parser and Code Profiler?

Please give me more shed on this.

Thanks!

Arpan 

*This post is locked for comments

I have the same question (0)
  • @rp@n Profile Picture
    56 on at

    Thanks Sukrut,

    I have one query :

    As we know that "Trace Parser" we are using for below purpose mostly :

    1. Long X++ code running

    2. Time consuming SQL queries

    3. To get Client and Server trace individually

    4. Call between client and Server

    As you said "Code Profiler" measure the execution time of each line.

    So, i think Trace Parser is also doing the same thing like "Code Profiler" because without measure each line of code how it will return the exact reasons of long X++ running code and Time consuming code.

    I think the difference only between Trace Parser and Code Profiler is,

    it return individual tarce of Client and Server call which is not in code profilre.

    If any thing else difference please let me know.

    Please verify. Is't correct?

    Arpan

  • Verified answer
    Chaitanya Golla Profile Picture
    17,225 on at

    Hi,

    Well it depends on your business requirement that demands whether to use the codeprofiler or traceParser. TraceParser not only provides the execution time(both inclusive and exclusive) but also list of slow running sql queries & queries that are frequently called(with actual values) and also RPC calls(between client and server) details like number of calls and time duration.

  • @rp@n Profile Picture
    56 on at

    Thanks Chaitanya,

    That means we can say in one sentence TracePaser provide us detail information about queries like you mentioned above but Code Profiler provide us less information in comparison of TraceParser.

    So, we can use any one for analyzing code (which needed) as per business need,

    Is't correct?

    Arpan

  • Verified answer
    Chaitanya Golla Profile Picture
    17,225 on at

    Hi,

    Yes, codeprofiler provides us information pertaining to the call stack and execution time consumed by each method(along with parent-child calls). Also even for analyzing code using TraceParser we can launch two instances of TraceParser UI one with client trace & other with server trace and make comparison side by side.

  • @rp@n Profile Picture
    56 on at

    Thanks Chaitanya,

    I will practice on this. If any thing doubt i will share screen shots for more clarification.

    Arpan

  • Verified answer
    Mahmoud Hakim Profile Picture
    17,887 on at

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Sagar Suman Profile Picture

Sagar Suman 2 Super User 2026 Season 1

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans