Ethereal-dev: Re: [ethereal-dev] Ethereal memory leakage fix and feature enhancement

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

From: Guy Harris <gharris@xxxxxxxxxxxx>
Date: Sun, 8 Aug 1999 02:49:21 -0700
> Some time ago, I made an improvement of the snprintf function (see
> http://ethereal.zing.org/lists/ethereal-dev/199905/msg00108.html) because
> some profiling tests show me that it was a particularly good point to
> enhance.

Unfortunately, that helps only on platforms that don't have their own
"snprintf()" - we use the "snprintf()" that comes with Ethereal only if
the OS doesn't have its own.

> I think that the heavy use of some GTK functions also contributes
> significantly to this loss of performance but I can't see really how since
> the GTK library was not profiled when I performed the tests.

The profiled runs I did were on a binary dynamically linked with GTK+
and various other libraries; I'll try a statically-linked binary, which
may not be able to count the calls to routines in non-profiled
libraries, but it should at least count CPU samples for them.