Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 49.484.878 Times

Devel::Monitor 0.9.0.7

  Date Added: May 11, 2010  |  Visits: 871

Devel::Monitor

Report Broken Link
Printer Friendly Version


Product Homepage
Download (89 downloads)



Devel::Monitor is a Perl module that can monitor your variables/objects for memory leaks. You have memory leaks, and you want to remove it... You can use this tool to help you find which variables/objects that are not destroyed when they should be, and thereafter, you can visualise exactly where is the circular reference for some specific variables/objects. WHAT IT CANT DO Even if your modules are memory leak free, it doesnt mean that external modules that you are using dont have it. So, before running your application on mod_perl, you should be sure that EVERY modules are ok. (In particular those perl extensions calling C++ code) SYNOPSIS use Devel::Monitor qw(:all); #----------------------------------------------------------------------------- # Monitor scalars, arrays, hashes, references, constants #----------------------------------------------------------------------------- my ($a,$b) = (Foo::Bar->new(), Foo::Bar->new()); my ($c, @d, %e); use constant F => [1,2]; monitor(name for a => $a, name for b => $b, name for c => $c, name for d => @d, name for e => %e, name for F => &F); #NOTE : Dont add parentheses to the end of the constant (&F()) #----------------------------------------------------------------------------- # Print circular references #----------------------------------------------------------------------------- # NOTE : You cannot use print_circular_ref on a monitored/tied variable # (See "We cannot use tied objects references because it reuse memory space" doc) print_circular_ref($a); print_circular_ref($b); print_circular_ref($c); print_circular_ref(@d); print_circular_ref(%e); print_circular_ref(&F); #NOTE : Dont add parentheses to the end of the constant (&F()) USAGE : monitor Example with a circular reference +----------------------+ | Code | +----------------------+ { my @a; monitor(a => @a); $a[0] = @a; #Add a circular reference print STDERR "Leaving scopen"; } print STDERR "Scope leftn"; +----------------------+ | Output | +----------------------+ MONITOR ARRAY a Leaving scope Scope left DESTROY ARRAY a +----------------------+ | Meaning | +----------------------+ The line "DESTROY ARRAY a" should be between scope prints. @a were deleted on program exit. Example without a circular reference +----------------------+ | Code | +----------------------+ { my @a; monitor(a => @a); print STDERR "Leaving scopen"; } print STDERR "Scope leftn"; +----------------------+ | Output | +----------------------+ MONITOR ARRAY a Leaving scope DESTROY ARRAY a Scope left +----------------------+ | Meaning | +----------------------+ Everything is ok Now that you know there is a circular reference, you can track it down using the print_circular_ref method.

Requirements: No special requirements
Platforms: Linux
Keyword: Array Circular Circular Reference Destroy Destroy Array Develmonitor For Memory Memory Monitor Perl Module Print Ref Scope Stderr
Users rating: 0/10

License: Freeware Size: 16.38 KB
USER REVIEWS
More Reviews or Write Review


DEVEL::MONITOR RELATED
Libraries  -  Variable::Strongly::Typed::Array 1.1.0
Variable::Strongly::Typed::Array is a Perl module for strongly typed array. SYNOPSIS This class is utilized by Variable::Strongly::Typed - you dont access this directly my @array_of_ints :TYPE(int); # Each slot must contain an int my...
10.24 KB  
Programming  -  Tie::Array::QueueExpire for Linux 1.01
Tie::Array::QueueExpire is a Perl module that requires Time::HiRes, TokyoCabinet (database and perl module.) The insertion is ms unique ( 0.001 seconds ). The normal ARRAY function present are push pop shift
10.24 KB  
Libraries  -  List::Part 0.03
List::Part is a Perl module that allows you to partition one array into several. SYNOPSIS use List::Part; ($good, $bad)=part { !/substring/ } @array; #store arrayrefs into $good and $bad (*good, *bad)=part { !/substring/ } @array; #store...
4.1 KB  
Libraries  -  CIPP 3.0.8
CIPP Perl module contains a Reference Manual to CIPP, the powerful preprocessor language for embedding Perl and SQL in HTML. SYNOPSIS perldoc CIPP::Manual This documentation module is part of the CIPP distribution which is available on CPAN....
143.36 KB  
Libraries  -  Tie::Array::PackedC 0.03
Tie::Array::PackedC is a tie a Perl array to a C-style array (packed; elements of a single, simple data type). SYNOPSIS use Tie::Array::PackedC qw(packed_array packed_array_string); my $ref=packed_array(1,2,3,4); my...
6.14 KB  
Development Tools  -  Routh Hurwitz Criteria using user defined Function 1.0
RA=ROUTH(R,EPSILON) returns the symbolic Routh array RA for polynomial. The following special cases are considered:1) If the first element of a row becomes zero OR2) If one encounters a row full of zeros.>>syms ep>>a=routh([1 1 2 2 3 5],ep)The...
10 KB  
Libraries  -  Set::CrossProduct 1.92
Set::CrossProduct is a Perl module that allows you to work with the cross product of two or more sets. SYNOPSIS my $iterator = Set::CrossProduct->new( ARRAY_OF_ARRAYS ); # get the next tuple my $number_of_tuples = $iterator->cardinality;...
7.17 KB  
Libraries  -  MLDBM::TinyDB 0.20
MLDBM::TinyDB is a Perl module that can help you to create and manipulate structured MLDBM tied hash references. SYNOPSIS use MLDBM::TinyDB; ## or use MLDBM::TinyDB qw/db add_common/; @common = qw/created updated/; ## optional $tree =...
10.24 KB  
Libraries  -  Finance::YahooQuote 0.22
Finance::YahooQuote is a Perl module that can get stock quotes from Yahoo! Finance. SYNOPSIS use Finance::YahooQuote; # setting TIMEOUT and PROXY is optional $Finance::YahooQuote::TIMEOUT = 60; $Finance::YahooQuote::PROXY =...
22.53 KB  
Libraries  -  Games::Tournament::RoundRobin 0.01
Games::Tournament::RoundRobin is a Perl module for Round-Robin Tournament Schedule Pairings. SYNOPSIS $schedule = Games::Tournament::RoundRobin->new; $pairings = $schedule->indexesInRound($roundm); $round = $schedule->meeting($member1,...
10.24 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB