Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / CLR / October 2004

Tip: Looking for answers? Try searching our database.

inspecting the number of function calls within a particular functi

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
denz - 11 Oct 2004 16:01 GMT
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..
Richard Blewett [DevelopMentor] - 11 Oct 2004 16:19 GMT
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..



[microsoft.public.dotnet.framework.clr]
Sriram Krishnan - 12 Oct 2004 08:20 GMT
Maybe the original poster was talking about profiling and counting the
number of times a function is called

Signature

Sriram Krishnan

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

> 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
[quoted text clipped - 24 lines]
>
> [microsoft.public.dotnet.framework.clr]
denz - 15 Oct 2004 02:49 GMT
yes, basically i just want to find out the number of times a function call is
made within a particular function.
thanks.

> Maybe the original poster was talking about profiling and counting the
> number of times a function is called
[quoted text clipped - 27 lines]
> >
> > [microsoft.public.dotnet.framework.clr]
Sriram Krishnan - 15 Oct 2004 03:04 GMT
Use a profiler. One good open source profiler is NProf. Or use any of the
commerical .NET profilers out there

Signature

Sriram Krishnan

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

> yes, basically i just want to find out the number of times a function call
> is
[quoted text clipped - 35 lines]
>> >
>> > [microsoft.public.dotnet.framework.clr]

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.