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
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. :-)
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.
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."
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
André Arnaud de Cal...
291,971
Super User 2025 Season 1
Martin Dráb
230,846
Most Valuable Professional
nmaenpaa
101,156