Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

devel::leak(3pm) [debian man page]

Leak(3pm)						User Contributed Perl Documentation						 Leak(3pm)

NAME
Devel::Leak - Utility for looking for perl objects that are not reclaimed. SYNOPSIS
use Devel::Leak; ... setup code my $count = Devel::Leak::NoteSV($handle); ... code that may leak Devel::Leak::CheckSV($handle); DESCRIPTION
Devel::Leak has two functions "NoteSV" and "CheckSV". "NoteSV" walks the perl internal table of allocated SVs (scalar values) - (which actually contains arrays and hashes too), and records their addresses in a table. It returns a count of these "things", and stores a pointer to the table (which is obtained from the heap using malloc()) in its argument. "CheckSV" is passed argument which holds a pointer to a table created by "NoteSV". It re-walks the perl-internals and calls sv_dump() for any "things" which did not exist when "NoteSV" was called. It returns a count of the number of "things" now allocated. CAVEATS
Note that you need a perl built with -DDEBUGGING for sv_dump() to print anything, but counts are valid in any perl. If new "things" have been created, "CheckSV" may (also) report additional "things" which are allocated by the sv_dump() code. HISTORY
This little utility module was part of Tk until the variable renaming in perl5.005 made it clear that Tk had no business knowing this much about the perl internals. AUTHOR
Nick Ing-Simmons <nick@ni-s.u-net.com> perl v5.14.2 2004-03-18 Leak(3pm)

Check Out this Related Man Page

Devel::REPL::Plugin::Nopaste(3pm)			User Contributed Perl Documentation			 Devel::REPL::Plugin::Nopaste(3pm)

NAME
Devel::REPL::Plugin::Nopaste - #nopaste to upload session's input and output COMMANDS
This module provides these commands to your Devel::REPL shell: #nopaste The "#nopaste" sends a transcript of your session to a nopaste site. #pastetitle The "#pastetitle" command allows you to set the title of the paste on the nopaste site. For example: "#pastetitle example of some code" defaults to 'Devel::REPL session' CONFIGURATION
nopaste_format The format sent to the nopaste server can be adjusted with the "nopaste_format" option. By default, the output of each perl statement is commented out, and the perl statements themselves are not. This can be reversed by setting the "nopaste_format" attribute to "comment_code" like this in your re.pl file: "$_REPL->nopaste_format( 'comment_code' );" The default of commenting out the output would be set like this: "$_REPL->nopaste_format( 'comment_output' );" These options can be set during a Devel::REPL session, but only affect the future parts of the session, not the past parts. AUTHOR
Shawn M Moore, "<sartak at gmail dot com>" CONTRIBUTORS
Andrew Moore - "<amoore@cpan.org>" perl v5.14.2 2010-05-08 Devel::REPL::Plugin::Nopaste(3pm)
Man Page

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

perl functions and arrays

Hi, First I will tell my objective of this function (function one). I have a table for ex: id passwd name -- ------ ----- 1 fdhgfs werwer 2 fsdfs sdfsdf 3 sdfs sdfsdf 4 fdsfs dssdf . . . . . . The id, passwd and name are the arguments for another function say two. (1 Reply)
Discussion started by: mercuryshipzz
1 Replies

2. Shell Programming and Scripting

Using a variable within a variable name

Hello all, I am currently trying to over-complicate things by doing something similar to the code below: count=1 for x in $(cat /etc/filename); do file_$count=$(echo $variable| awk '{print $1}') count=$(( $count + 1 )) done What I expected was different variable names file_1 file_2 .... (1 Reply)
Discussion started by: Khoomfire
1 Replies

3. Shell Programming and Scripting

Comparing arrays in perl

Hi all, I am trying to compare two arrays in perl using the following code. foreach $item (@arrayA){ push(@arrayC, $item) unless grep(/$item/, @arrayB); ... (1 Reply)
Discussion started by: chriss_58
1 Replies

4. AIX

Process crashing on AIX due to memory Leak

Hi All, I have a process running on my AIX 5.3 server box. The process runs fine for 5-6days but then crashes. The log file shows malloc failure and the svmon (Virtual memory size), ps -lef (SZ value) are also gradually increasing. But unfortunately MALLOCDEBUG and any other memory debugging... (3 Replies)
Discussion started by: SBatra
3 Replies

5. Programming

Working with extremely large numbers in C

Hi All, I am just curious, not programming anything of my own. I know there are libraries like gmp which does all such things. But I really need to know HOW they do all such things i.e. working with extremely large unimaginable numbers which are beyond the integer limit. They can do add,... (1 Reply)
Discussion started by: shoaibjameel123
1 Replies

6. Web Development

Finding Cause of Memory Leak

Hi We have just got a dedicated server with Fasthosts, O/S is Linux CentOS 6 64 bit. It was a fresh install and I have just moved one WordPress site onto there. The problem is we seem to be getting a memory leak (that's what Fasthosts said) and the database (I think) keeps crashing, so we... (3 Replies)
Discussion started by: Pokeyzx
3 Replies

7. Shell Programming and Scripting

UNIX Script required for count the records in table

Hi Friends, I looking for the script for the count of the records in table. and then it's containg the zero records then should get abort. and should notify us through mail. Can you please help me out in this area i am lacking. (5 Replies)
Discussion started by: victory
5 Replies