Vikrant Kumar Choudhary
2007-Feb-26 07:31 UTC
[dtrace-discuss] Does Dtrace supports perl ?
If not, how do i start to make it for perl. Thanks, Vikrant This message posted from opensolaris.org
Last two things I saw on this were from Adam Leventhal: http://blogs.sun.com/ahl/date/20041005 "And speaking of perl, a lot of people asked about DTrace''s visibility into perl. Right now the only non-natively executed languate DTrace lets you observe is java, but now that we realize how much need there is for visibility into perl, we''re going to be working aggressively on making DTrace work well with perl. We''ve got some neat ideas, but if there are things you''d like to see with DTrace and perl, we''d love to hear about it as we think about what sorts of problems we need to solve." and from Alan Burlison: http://blogs.sun.com/alanbur/entry/dtrace_and_perl Anyone from SUN care to respond? -Shawn This message posted from opensolaris.org
Andreas.Haas at Sun.COM
2007-Feb-26 10:24 UTC
[dtrace-discuss] Does Dtrace supports perl ?
On Sun, 25 Feb 2007, Vikrant Kumar Choudhary wrote:> If not, how do i start to make it for perl.I do not know what you try to achieve, but you might already have good monitoring, if you know the C language functions that implement the Perl interpreter. If you know them the the PID-provider could be used as described here http://wiki.gridengine.info/wiki/index.php/Dtrace#Implementation note, the only prerequisite for the PID-provider to be working is that the functions you monitor were not inlined by the compiler. Regards, Andreas
It does now. From http://use.perl.org/articles/08/01/08/2039207.shtml I hope I''m not stealing AndyA''s thunder, but this just went by on p5p and I''m excited! From: Andy Armstrong <andy at hexten.net> I now have a dtraced bleadperl which runs no slower than the clean version: orig | dtrace | ratio =================================== 2.51239896 | 2.47904992 | 0.98672622 2.50696611 | 2.46995783 | 0.98523782 2.52996778 | 2.47554016 | 0.97848683 2.50457382 | 2.47788405 | 0.98934359 2.50622296 | 2.46893001 | 0.98511986 In fact in those tests the dtraced version is running marginally faster. I''m putting that down to a happy code alignment or somesuch. If you don''t want to run bleadperl, which is understandable, then see Devel::DTrace on CPAN: http://search.cpan.org/dist/Devel-DTrace/lib/Devel/DTrace.pm N