[zeromq-dev] profiling a czmq program with gprof
Michael Haberler
mail17 at mah.priv.at
Sun Sep 23 08:03:16 CEST 2012
Am 23.09.2012 um 01:59 schrieb Steven McCoy:
> On 22 September 2012 16:41, Michael Haberler <mail17 at mah.priv.at> wrote:
> I tried to profile a program using czmq with gprof which runs fine when compiled with gcc, but without -pg
>
> with -pq, the program cops out with:
>
> 12-09-22 22:37:24 I: zloop: interrupted (-1) - Interrupted system call
>
> any suggestions?
>
>
> You'll be better off with oprofile based profiling which uses the CPU performance counters for greater accuracy on measurements.
Steven,
thanks - I was not aware of this tool, need to look into it
btw the fix to the reported problem was to RTFM and call zloop_start() like so:
do {
retval = zloop_start(loop);
} while (!(retval || zctx_interrupted));
even then though, gprof output remains pretty useless.
- Michael
> --
> Steve-o
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
More information about the zeromq-dev
mailing list