Red Gate forums :: View topic - WPF Application Start Up Time
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

WPF Application Start Up Time

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



Joined: 28 Oct 2009
Posts: 2

PostPosted: Wed Oct 28, 2009 3:16 pm    Post subject: WPF Application Start Up Time Reply with quote

When I run my WPF application in the ANTS Performance Profiler, it takes a very long time to start up. It takes roughly 4 times longer to start up in the profiler than it does in the debugger or from the console.

My main concern and reason for using the profiler at this time is to enhance startup time on my application, so this slowdown is making the use of the ANTS profiler useless in this case.

Is there some configuration that will help get my startup time to be more inline with what it should be?

Thank You

MEF
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6641

PostPosted: Thu Oct 29, 2009 5:57 pm    Post subject: Reply with quote

Hi Matt,

I have noticed the same issue myself -- I think that the base reason for WPF startup being slowed down this noticably is that there are a lot of recursive methods. If you profile a WPF app, you will see some methods have a high hit count. The get_CurrentThread method will be in the hundreds of thousands, then the call graph shows some recursion in SubclassWndProc.

Recursive methods have historically caused a performance hit for profilers.
Back to top
View user's profile Send private message
mfreeman37



Joined: 28 Oct 2009
Posts: 2

PostPosted: Thu Oct 29, 2009 6:18 pm    Post subject: Reply with quote

Hi Brian-

How can I profile down into these methods?
Currently, the profiler just shows them collapsed without source.
I assume this is where the framework stuff is sitting.

Thank You for you help!
MEF
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6641

PostPosted: Thu Oct 29, 2009 6:21 pm    Post subject: Reply with quote

I just went to the "grid view" so that I could easily sort on the methods with the largest hit count.
Back to top
View user's profile Send private message
StephenC



Joined: 15 Oct 2007
Posts: 315
Location: Cambridge

PostPosted: Mon Nov 02, 2009 12:16 pm    Post subject: Reply with quote

Matt,

if you want to see the collapsed methods then just change the display options - see the combo boxes.

By default it shows "Top down, methods with source"

Just change this to Top Down, any method.

Be warned though - the noise of showing all these methods will be large. I would select the region of interest and switch to the All Method grid and change the display settings there too.

S
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