Am 23.09.2012 um 01:59 schrieb Steven McCoy:
> On 22 September 2012 16:41, Michael Haberler <[email protected]> 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
> [email protected]
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev