| Author |
Message |
mfreeman37
Joined: 28 Oct 2009 Posts: 2
|
Posted: Wed Oct 28, 2009 3:16 pm Post subject: WPF Application Start Up Time |
|
|
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 |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6341 Location: Red Gate Software
|
Posted: Thu Oct 29, 2009 5:57 pm Post subject: |
|
|
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. _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
mfreeman37
Joined: 28 Oct 2009 Posts: 2
|
Posted: Thu Oct 29, 2009 6:18 pm Post subject: |
|
|
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 |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6341 Location: Red Gate Software
|
Posted: Thu Oct 29, 2009 6:21 pm Post subject: |
|
|
I just went to the "grid view" so that I could easily sort on the methods with the largest hit count. _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
StephenC
Joined: 15 Oct 2007 Posts: 314 Location: Cambridge
|
Posted: Mon Nov 02, 2009 12:16 pm Post subject: |
|
|
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 |
|
 |
|
|
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