mardi 12 juin 2018

How to get code execution graph and relevant time?

Let’s say I have a .NET exe application. Let’s say I have a complex calling structure E.g. method1 calls method2 etc and I want to inspect execution time.I want to plot the code execution graph into a text file. How can I do that? E.g.

Class1.Method1 (paramer1,parameter2)-> 5 took seconds to execute

Class2.Method2(parameter3)-> 2 took seconds to execute

I know there are tools like RedGate Ants memory profile. But can we do this without using a third-party tools or how can I create something like RedGate Ants memory profiler using .NET?





Aucun commentaire:

Enregistrer un commentaire