all groups > dotnet clr > october 2004 >
You're in the

dotnet clr

group:

inspecting the number of function calls within a particular functi



inspecting the number of function calls within a particular functi denz
10/11/2004 8:01:07 AM
dotnet clr: how can i count the number of function calls that a particular function
makes? i want to be able to inspect a dll and retrieve the number of function
calls for a particular function. i know that this is possible since ildasm
actually displays the opcodes for function calls and others within a
particular function..

Re: inspecting the number of function calls within a particular functi Richard Blewett [DevelopMentor]
10/11/2004 8:19:40 AM
You'll need access to the IL stream for that. Theres a new method in the Whidbey reflection API to get that, but until then you either have to parse it yourself or use Lutz Roeder's ILReader library

http://www.aisto.com/roeder/dotnet/

Regards

Richard Blewett - DevelopMentor
http://staff.develop.com/richardb/weblog

nntp://news.microsoft.com/microsoft.public.dotnet.framework.clr/<74428B56-D6DA-41A8-B2EC-6687491516E3@microsoft.com>

how can i count the number of function calls that a particular function
makes? i want to be able to inspect a dll and retrieve the number of function
calls for a particular function. i know that this is possible since ildasm
actually displays the opcodes for function calls and others within a
particular function..

thanks in advance..

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.775 / Virus Database: 522 - Release Date: 08/10/2004



Re: inspecting the number of function calls within a particular functi Sriram Krishnan
10/12/2004 12:50:29 PM
Maybe the original poster was talking about profiling and counting the
number of times a function is called

--
Sriram Krishnan

http://www.dotnetjunkies.com/weblog/sriram


[quoted text, click to view]

Re: inspecting the number of function calls within a particular fu denz
10/14/2004 6:49:07 PM
yes, basically i just want to find out the number of times a function call is
made within a particular function.
thanks.

[quoted text, click to view]
Re: inspecting the number of function calls within a particular fu Sriram Krishnan
10/15/2004 7:34:31 AM
Use a profiler. One good open source profiler is NProf. Or use any of the
commerical .NET profilers out there

--
Sriram Krishnan

http://www.dotnetjunkies.com/weblog/sriram


[quoted text, click to view]

AddThis Social Bookmark Button