Red Gate forums :: View topic - Native Images: Exceptions and other oddities
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
ANTS Performance Profiler 5
ANTS Performance Profiler 5 forum

Native Images: Exceptions and other oddities

Search in ANTS Performance Profiler 5 forum
Post new topic   Reply to topic
Jump to:  
Author Message
David.Narraway



Joined: 23 Oct 2009
Posts: 14
Location: Oulu, Finland

PostPosted: Tue Jan 12, 2010 12:46 pm    Post subject: Native Images: Exceptions and other oddities Reply with quote

A little while ago I noticed that a lot of time was spent in the JIT complier when profiling our app, so I thought I'd spend some time getting to know NGEN. All well and good - reduced start up time by 25%, but obviously I thought I'd profile it as well. The method graphs are pretty much empty and I get an Out-of-Memory exception during my profiling sessions. I can expand the call graph and see method calls even though they are not in the tree or table views. Well I did all this before reading this topic.

So now I know that trying to profile an app using native images is probably not going to work properly. I posted this so that the title might help others who stumble across it.

David.
Back to top
View user's profile Send private message
Chris.Allen



Joined: 12 Mar 2009
Posts: 585

PostPosted: Wed Jan 13, 2010 1:49 pm    Post subject: Reply with quote

Thank you for this informaiton- it is very helpful. I think we have some known issues with ngen- I will search for the infomaton and re-post it here.
Back to top
View user's profile Send private message
Chris.Allen



Joined: 12 Mar 2009
Posts: 585

PostPosted: Thu Jan 14, 2010 6:06 pm    Post subject: Reply with quote

Here's the info we have:
when you profile a managed process, only IL assembly modules are loaded and not the native images as would happen normally.
According to MS, it is possible to create "profiler friendly" native images using ngen with some specific switches- we have an exisiting feature request to do this automatically - PP-865.
Back to top
View user's profile Send private message
David.Narraway



Joined: 23 Oct 2009
Posts: 14
Location: Oulu, Finland

PostPosted: Fri Jan 15, 2010 7:18 am    Post subject: Reply with quote

The switch for NGEN is /Profile, which I did use, but obviously it won't have had any effect. Do you have any idea why I would have got the OOM exception? It doesn't happen when profiling normally, i.e. without using the native images. Might be something you have to look into.

David.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group