Ethereal-dev: RE: [Ethereal-dev] Profiling with MSVC?!?

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Maynard, Chris" <Christopher.Maynard@xxxxxxxxx>
Date: Tue, 11 Jan 2005 15:18:11 -0500
Sorry that I don't have the answers you're looking for, but one
alternative if you can't resolve this under win32, is to try and use
gprof and/or gcov on a linux platform instead.

- Chris
 

-----Original Message-----
From: ethereal-dev-bounces@xxxxxxxxxxxx
[mailto:ethereal-dev-bounces@xxxxxxxxxxxx] On Behalf Of Ulf Lamping
Sent: Tuesday, January 11, 2005 3:01 PM
To: Ethereal-Dev
Subject: [Ethereal-dev] Profiling with MSVC?!?

Hi List!

Today I've tried to profile Ethereal on win32, to possibly improve 
dissection performance. But I ran into problems and someone with more 
knowledge than me might be able to help me here.

To do the profiling, I had to add the /PROFILE switch to the link call 
(which is generating a .map file) and then call PREP / PROFILE / PREP as

described in the MSDN info.

First I've simply profiled the ethereal.exe without any other dll. This 
worked pretty well, I figured out that most of the dissection time is 
spend in epan_dissect_run, beside the usual WinMain functions and such 
(well, as already expected).

However, as I was trying to profile the things in libethereal.dll, I got

only strange results.

When I tried to put the /PROFILE switch in the static library link calls

(link /lib ...), this failed. The only place where I could add it were 
in the linking of the libethereal.dll. When doing a profile run with 
this, I got only obviously wrong results, as for example it told me that

epan_dissect_run didn't took any time but was called 16243 times in my 
test run :-(

Then I tried to statically link ethereal.exe without generating the 
libethereal.dll at all by modifiying my config.nmake 
(#ENABLE_LIBETHEREAL=USE). Unfortunately there was no change in the 
behaviour.

Anyone got a clue what I could try else now?

Regards, ULFL

_______________________________________________
Ethereal-dev mailing list
Ethereal-dev@xxxxxxxxxxxx
http://www.ethereal.com/mailman/listinfo/ethereal-dev

-----------------------------------------
This email may contain confidential and privileged material for the sole
use of the intended recipient(s). Any review, use, retention, distribution
or disclosure by others is strictly prohibited. If you are not the intended
recipient (or authorized to receive for the recipient), please contact the
sender by reply email and delete all copies of this message. Also, email is
susceptible to data corruption, interception, tampering, unauthorized
amendment and viruses. We only send and receive emails on the basis that we
are not liable for any such corruption, interception, tampering, amendment
or viruses or any consequence thereof.