Red Gate forums :: View topic - How to exclude certain function from results?
Return to www.red-gate.com RSS Feed Available

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

How to exclude certain function from results?

Search in ANTS Performance Profiler 6 forum
Post new topic   Reply to topic
Jump to:  
Author Message
poma



Joined: 27 Jun 2010
Posts: 3

PostPosted: Sun Jun 27, 2010 5:28 pm    Post subject: How to exclude certain function from results? Reply with quote

I have software that spends lots of time receiving data from socket. How can I exclude 'Receice' function from profiling results?
Back to top
View user's profile Send private message
slaphead99



Joined: 10 Mar 2010
Posts: 93

PostPosted: Mon Jun 28, 2010 11:43 am    Post subject: Reply with quote

The way that the latest profilers have been designed is that if you wish to exclude data, you use the "Interactive timeline" and select only the time span you wish to analyse.
ANTS v6 shows you which timespan(s) any method has been active for.

Unlike earlier versions, however, you cannot exclude specific assemblies.
Back to top
View user's profile Send private message
poma



Joined: 27 Jun 2010
Posts: 3

PostPosted: Mon Jun 28, 2010 12:36 pm    Post subject: Reply with quote

My application designed such way that there is functions A(), B(), C(), D()... and all of them make calls to 'Receive' function. I want to exclude it to view how much time funcitons spend EXCEPT making calls to 'Receive'
Back to top
View user's profile Send private message
slaphead99



Joined: 10 Mar 2010
Posts: 93

PostPosted: Wed Jun 30, 2010 1:53 pm    Post subject: Reply with quote

Sorry- there's no facility to filter based on specific methods (only methods with/without source). You may be able to get this to work by "hiding" the pdb file for the Receive method (as long as, obviously, this doesn't hide data that you do want to see)- the profiler only knows is source code by finding the PDB fil . Then just ensure you use the "methods with source" filter.

If you find that you are seeing a lot of real time (wall clock time) spent in the receive function- ensure you are using the "CPU time" filter.

Other than that- as I say, the application is not designed to exclude specific methods- sorry. Can I ask *why* you want to exclude this data- it won't affect the data for the methods you *do* want to see so why bother excluding it?
Back to top
View user's profile Send private message
poma



Joined: 27 Jun 2010
Posts: 3

PostPosted: Wed Jun 30, 2010 2:36 pm    Post subject: Reply with quote

Because I want to find "hot" methods. The easy way to do that is to sort them by time usage. But in my case 90% time is waiting for server responce.

My app is web crawler. It usualy run in 100 threads and I want to optimize CPU usage. But it actually shows me network usage because method's timings usually depend on web request time.
Back to top
View user's profile Send private message
slaphead99



Joined: 10 Mar 2010
Posts: 93

PostPosted: Wed Jun 30, 2010 3:52 pm    Post subject: Reply with quote

OK, thank you. I think you will find that if you use the "CPU time" filter, you will successfully be able to ignore these high-latency calls (you won't even see them any more as they will be insignificant (in terms of CPU time)).
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