Red Gate forums :: View topic - How to profile a WPF application?
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

How to profile a WPF application?

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



Joined: 12 Oct 2009
Posts: 5

PostPosted: Fri Nov 20, 2009 12:00 am    Post subject: How to profile a WPF application? Reply with quote

I try to figure out what is slow in my test application but the method listings show that the majority of time is spend in low-level methods such as

MS.Win32.NativeMethods+WndProc.Invoke(...)

The slowest method with Source code is only shown as 3.5 % time with children. I just don't know how to read this.

Are there tutorials on how to profile a WPF application? What does the 3.5% mean?
Back to top
View user's profile Send private message
Patrick



Joined: 12 Oct 2009
Posts: 5

PostPosted: Fri Nov 20, 2009 12:03 am    Post subject: Reply with quote

Also, when I go into the grid method view it shows that AppMain.StartApplication() and AppMain(string[] args) take 49.6% time with children and the next real method only 3.68 ... what does that mean?
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6674

PostPosted: Mon Nov 23, 2009 12:33 pm    Post subject: Reply with quote

Hi Patrick,

Profiling a WPF application is exactly the same as any other type of application.

I'd recommend changing the results from "wall clock" time to "CPU time" as your application's entry point (main) will always show the full length of time that you were profiling the applicaiton under wall-clock time.

Maybe the CPU time can further rationalize the rest of your results as well.
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