Profiling MiniSIP

Xuan Pan xuan at kth.se
Wed May 16 09:16:04 CEST 2007


I know little about Gprof. As an alternative, the timestamp facility in
libmutil library is a very helpful tool when measuring the execution time
of a function call or recursive calls. All you need to do in the code is
to identify the security relevant functions. Add ts.save() right before
and after the function call.

The following steps may help you to get the results:

1. When you configure the library, you need to use -DENABLE_TS to enable
the timestamp functionality.

2. Secondly run minisip

3. kill -USR1 MINISIP_PID

4. less /proc/minisip_ts

There are links of a number of master or PHD thesis that contain
performance measurement as the last step in their research. Could be very
helpful references too.

/Pan


> Hi.
> My name is Daniel Costa.
>
> I'm Studing Minisip to develop a research on how much security can slow
> VoiP
> Softwares.
>
> So, I was needing some help to profile Minisip using Gprof, to take the
> times that were spent with each minisip's functions(more especificaly, the
> security functions).
>
> I'm New to the research field, and just Know C, not C++( the language that
> minisip was coded).
>
> So, I'd be preciated if any of you could help me doing this, and i'd like
> to
> know how to genarate those regression logs that I see here, on the mail
> list, and what they are for.
>
> I'd Like to know too, how to generate logs with some statistics during a
> call.
>
> Thanks.
> _______________________________________________
> Minisip-devel mailing list
> Minisip-devel at minisip.org
> http://lists.minisip.org/mailman/listinfo/minisip-devel
>




More information about the Minisip-devel mailing list