http://qs321.pair.com?node_id=791611

jpl has asked for the wisdom of the Perl Monks concerning the following question:

Devel::NYTProf has implicated an XS routine I wrote as a major time sink, so I'd like to see some profiling results for the XS code. I built a perl.gprof, and it yields detailed information about perl itself, but not a peep about the xsub, even when I compiled it with -pg. I also tried the LD_PROFILE ld.so environment variable with non-pg versions of perl and the xsub, but that's not producing a gmon.out to analyze, possibly because of the late binding of the xsub.

All this is on an Ubuntu 9.04 x86-64 system, perl 5.10.1, but I have access to other architectures, if any monk has managed to divine a means of coaxing profiling information out of an xsub.