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 / May 2004

Tip: Looking for answers? Try searching our database.

Profiling NGEN'ed modules

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Simon Sheffield - 07 May 2004 14:01 GMT
Hi.
My profiler needs to profile some of the Framework libraries, and so the
contents of the native image cache need to be changed.
I would really like to be able to just do a "ngen.exe /prof mscorlib.dll"
and then have this version or mscorlib picked up when profiling (and when
not profiling, have the defeault native image loaded).

However, this does not happen, and it appears that I need to either have no
versions of mscorlib.dll in the native image cache, or have ONLY the
"ngen.exe /prof mscorlib.dll" version in there. If there are any others then
my profiling code does not work.

Does anyone know how I could force the runtime to load the profiled-native
mscorlib when profiling, and load the default-native version in all other
cases?

Thanks in advance.

Simon
Jonathan Keljo [MS] - 24 May 2004 21:03 GMT
Hi Simon,
    The purpose of NGEN /prof is to enable enter/leave and transition
callbacks for the profiler (that is--or at least should be--the only
difference between NGEN /prof and regular NGEN in v1.1). So the way to
force an NGEN /prof image to get loaded is by requesting enter/leave
(COR_PRF_MONITOR_ENTERLEAVE) or transition callbacks
(COR_PRF_MONITOR_CODE_TRANSITIONS).

Jonathan

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
| From: "Simon Sheffield" <sisheffield@hotmail.com>
| Subject: Profiling NGEN'ed modules
[quoted text clipped - 7 lines]
| Newsgroups: microsoft.public.dotnet.framework.clr
| NNTP-Posting-Host: 80-28-111-230.adsl.nuria.telefonica-data.net
80.28.111.230
| Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12
.phx.gbl
| Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.framework.clr:10537
| X-Tomcat-NG: microsoft.public.dotnet.framework.clr
[quoted text clipped - 18 lines]
|
| Simon

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.