Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

How and when to use Code Profiler

(0) ShareShare
ReportReport
Posted on by

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

  • Verified answer
    Mahmoud Hakim Profile Picture
    Mahmoud Hakim 17,887 on at
  • @rp@n Profile Picture
    @rp@n on at
    RE: How and when to use Code Profiler

    Thanks Chaitanya,

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

    Arpan

  • Verified answer
    Chaitanya Golla Profile Picture
    Chaitanya Golla 17,225 on at
    RE: How and when to use Code Profiler

    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
    @rp@n on at
    RE: How and when to use Code Profiler

    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
    Chaitanya Golla 17,225 on at
    RE: How and when to use Code Profiler

    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
    @rp@n on at
    RE: How and when to use Code Profiler

    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

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,979 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,848 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans