How to exclude certain function from results?

Code profiling for .NET Developers

Moderators: Luke Jefferson, StephenC, Alex.Davies, AndrewH, melvyn.harbour, Laura Morley

How to exclude certain function from results?

Postby poma » Sun Jun 27, 2010 5:28 pm

I have software that spends lots of time receiving data from socket. How can I exclude 'Receice' function from profiling results?
poma
 
Posts: 3
Joined: Sun Jun 27, 2010 5:26 pm

Postby slaphead99 » Mon Jun 28, 2010 11:43 am

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.
slaphead99
 
Posts: 92
Joined: Wed Mar 10, 2010 2:27 pm

Postby poma » Mon Jun 28, 2010 12:36 pm

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'
poma
 
Posts: 3
Joined: Sun Jun 27, 2010 5:26 pm

Postby slaphead99 » Wed Jun 30, 2010 1:53 pm

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?
slaphead99
 
Posts: 92
Joined: Wed Mar 10, 2010 2:27 pm

Postby poma » Wed Jun 30, 2010 2:36 pm

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.
poma
 
Posts: 3
Joined: Sun Jun 27, 2010 5:26 pm

Postby slaphead99 » Wed Jun 30, 2010 3:52 pm

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)).
slaphead99
 
Posts: 92
Joined: Wed Mar 10, 2010 2:27 pm


Return to ANTS Performance Profiler 6

Who is online

Users browsing this forum: No registered users and 1 guest