Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Unanswered

How to get how much time was consumed by process at each model.

(0) ShareShare
ReportReport
Posted on by

Hello experts,

Is there a way to get how much time was consumed by base code, isv code & custom code.

For example if we are Updating sales order then how  to get how much time was consumed by each item below via x++

a.Base code

b. ISV1 code

c. ISV2 code

d.ISVN code

e.Custom code (model where all customization is happening)

I have tried xppCallStack but that seems to provide what all code was touched and does not provide time spent at each node.

How does trace parser get this information, is the trace parser code available in our dev vm for reference. 

Thanks

Mav

  • Martin Dráb Profile Picture
    Martin Dráb 230,846 Most Valuable Professional on at
    RE: How to get how much time was consumed by process at each model.

    Traces are generated by Event Tracing for Windows (ETW). Trace Parser is a separate application parsing trace files, putting them to database and showing the results. It's not written in X++; X++ is used by AX/F&O only.

    What you can do is querying the database. But in my opinion, the effort would be higher than any benefit you could get from it. It's likely that the requirement came from someone with little idea about how these things work. Saying that it's not possible may be the right course of action. :-)

  • Mav Profile Picture
    Mav on at
    RE: How to get how much time was consumed by process at each model.

    I know how to use trace parser my question was not about how to use it but , what code trace parser uses to capture and show traces which shows time consumed by each function . Is that x++ code , if yes where can we see that code trace parser users in dev vm .

    Also if there is any other way we can get how much time code has taken to run at each model , objective is to get how much time was taken by base code , isv code and custom code .

    The call stack sends the information of all code process has touched but unfortunately it does not tell how much time was consumed at each node or call stack , is there any way we can send time consumed info in call stack.

    Also stopwatch is another option but it does not look viable in my scenario as I will end up adding stopwatch start stop code at 1000 plus places to capture this info and then if there is coc by multiple isv at same base method it becomes more complex.

  • Anton Venter Profile Picture
    Anton Venter 19,493 Super User 2025 Season 1 on at
    RE: How to get how much time was consumed by process at each model.

    Hi Mav,

    Yes, it is available on the Dev VM. See link below for more information.

    "The trace parser tool can be found in the PerfSDK folder on your development deployments."

    learn.microsoft.com/.../trace-trace-tutorial

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,971 Super User 2025 Season 1 on at
    RE: How to get how much time was consumed by process at each model.

    Hi Mav,

    The trace parser can provide information about all steps in the trace. You would need to check yourself which method belongs to what model. You can find more information about this tool in the documentation: Take traces by using Trace parser - Finance & Operations | Dynamics 365 | Microsoft Learn

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,971 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,846 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans