I want a kind of profiler. I would like to now which function allocated
how much memory (that is easy to check with MS CLRProfiler). But I would
also like to now how much time was spend on executing each function, or how
many times it was called and so on. I couldn't find thouse features in
CLRProfiler.
Can anyone sugest a method or application for that?
Adam Badura
hi,
You could use the StopWatch class in "System.Diagnostics" but it has a
pretty big overhead in close loops.... You can build your own by getting the
performancecounters... you can look there for an example :
http://www.codeproject.com/csharp/highperformancetimercshar.asp
I hope it helps
ThunderMusic
> I want a kind of profiler. I would like to now which function allocated
> how much memory (that is easy to check with MS CLRProfiler). But I would
[quoted text clipped - 4 lines]
>
> Adam Badura
Alvin Bruney [MVP] - 25 Jul 2007 01:43 GMT
how about enabling tracing?

Signature
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...
https://www.microsoft.com/MSPress/books/10933.aspx
OWC Black Book www.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley
> hi,
> You could use the StopWatch class in "System.Diagnostics" but it has a
[quoted text clipped - 15 lines]
>>
>> Adam Badura
The ANTS profiler's pretty good :
http://www.red-gate.com/products/ants_profiler/index.htm
HTH,
Adam.
==========