|
|
| Do you know where your variables are? | |
| PerlMonks |
Re: Profiling the C side of an Inline::C moduleby fauria (Deacon) |
| on Sep 04, 2005 at 19:28 UTC ( [id://489095]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
I was wondering if using valgrind would work. So, i tried it with a very simple c program:
and returned: ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 17 from 2) malloc/free: in use at exit: 0 bytes in 0 blocks. malloc/free: 1 allocs, 1 frees, 4 bytes allocated. Everything is ok. Now, i try it using: /usr/local/bin/valgrind perl -e 'print "Hello, world!\n";' and i get: LEAK SUMMARY: definitely lost: 222050 bytes in 655 blocks. possibly lost: 0 bytes in 0 blocks. still reachable: 0 bytes in 0 blocks. suppressed: 0 bytes in 0 blocks. Use --leak-check=full to see details of leaked memory. Wow. Trying to profile some mixed code, like: becomes a hell! Has anybody tried succesfully valgrind on perl?
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||