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 50.081.974 Times

Devel::TrackObjects 0.2

  Date Added: October 06, 2010  |  Visits: 710

Devel::TrackObjects

Report Broken Link
Printer Friendly Version


Product Homepage
Download (100 downloads)



Devel::TrackObjects is a Perl module to track use of objects. SYNOPSIS cmdline perl -MDevel::TrackObjects=/^IO::/ server.pl inside use Devel::TrackObjects qr/^IO::/; use Devel::TrackObjects -verbose; use IO::Socket; ... my $sock = IO::Socket::INET->new... ... Devel::TrackObjects->show_tracked; Devel::TrackObjects redefines bless and thus tracks the creation of objectsi by putting weak references to the object into a list. It can be specified which classes to track. At the end of the program it will print out infos about the still existing objects (probably leaking). The same info can be print out during the run using show_tracked. IMPORTANT The Module must be loaded as early as possible, because it cannot redefine bless in already loaded modules. See import how to load it so that it redefines bless. METHODS The following class methods are defined. import ( COND|OPTIONS ) Called from use. COND is a list of conditions. A condition is either a regex used as a match for a classname, a string used to match the class with exactly this name or a reference to a subroutine, which gets called to decide if the class should get tracked (must return TRUE). Special is if the condition is /regex/. In this case it will be compiled as a regex. This is used, because on the perl cmdline one cannot enter compiled regex. If the item is a string starting with "-" it will be interpreted as an option. Valid options are: -verbose Output from show_tracked will be more verbose, e.g it will use show_tracked_detailed instead of show_tracked_compact. -noend Dont show remaining tracked objects at END. -debug Will switch an internal debugging. If conditions are given it will redefine CORE::GLOBAL::bless unless it was already redefined by this module. That means you do not pay a performance penalty if you just include the module, only if conditions are given it will redefine bless. show_tracked ( [ PREFIX ] ) If -verbose was set in import it will call show_tracked_detailed, otherwise show_tracked_compact. This method will be called at END unless -noend was specified in import. show_tracked_compact ( [ PREFIX ] ) Will create a hash containing all tracked classes and the current object count for the class. If the caller wants to get something in return it will return a reference to this hash, otherwise it will print out the information in a single line to STDERR starting with "LEAK$PREFIX". show_tracked_detailed ( [ PREFIX ] ) If the caller wants something in return it will give it a reference to an array containing array-refs with [ REF,FILE,LINE ], where REF is the weak reference to the object, FILE and LINE the file name and line number, where the object was blessed. If the calling context is void it will print these information to STDERR. The first line will start with "LEAK$PREFIX", the next ones with "--" and the last one again with "LEAK$PREFIX"..

Requirements: No special requirements
Platforms: Linux
Keyword: Develtrackobjects Io Leak Module Perl Perl Module Prefix Reference Reference To Show Track Tracked Trackobjects Use Of Will Be
Users rating: 0/10

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


DEVEL::TRACKOBJECTS RELATED
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  -  Pod::Dsr 1.02
Pod::Dsr is a Perl module Convert POD data to formatted DSR input SYNOPSIS use Pod::Dsr; my $parser = Pod::Dsr->new (release => $VERSION, section => 8); # Read POD from STDIN and write to STDOUT. $parser->parse_from_filehandle; # Read...
102.4 KB  
Network & Internet  -  mod_haydn 0.0.6
mod_haydn is an apache module which allows you to embed MSIL bytecodes (the foundation of Microsofts CLR/.NET) into Apache. mod_haydn allows you to access all of Apaches API from any CLR/.NET enabled language. Currently it only has partial...
10.24 KB  
Libraries  -  Direct Excel Connection plugin 3.7.7.214
Data publication module "Direct Excel Connection" for Advanced Serial Data Logger is created for data transmit of received by Advanced Serial Data Logger and picked out from byte flow by parser to programs Microsoft Excel, without use of additio...
 
Modules  -  Mobile theme selection 5.x-1.x-de
Note: As of 2009/10/04, this module appears to no longer be supported. If you are interested in taking this module over, or you as the module maintainer feel this message has been posted in error, please reply to #571180: Is mobit module still...
10 KB  
Modules  -  Full Node Version 6.x-1.x-de
full_node_version module (FNV) enhances versioning to allow draft and production views of site content witout a database roll.Content creators often need to see a site to know when it's right. While preview is great for single pages, it falls...
20.48 KB  
Modules  -  FenrisLab Admin Icon 1.1
A simple module that allows you to add the Control Panel administration of Joomla! custom icon with a link to the selected component installed.Installation, updates1st Install the module using the default installer Joomla!2nd Go to "Extensions>...
10 KB  
Modules  -  Similarity Objects 6.x-1.x-de
This module allows the administrator to create a wide ranging set of similarity calculations. It can out of the box, calculate similar nodes of a specific type using the search index, taxonomy terms and node title. These similarities are...
20.48 KB  
Modules  -  SQL Cron 6.x-1.0
SQL Cron is a Drupal module that allows you to create and manage a set of SQL statements that are executed during cron runs. The last execution time and execution result is displayed for each SQL statement. Any SQL statement that is valid for the...
10 KB  
Modules  -  Attached Node 4.7.x-1.x-de
The attached_node module allows users to include a reference to a node within the body of another node. Textually, this appears in the body text as a type of tag. This tag is translated by a filter into a teaser version of the node being...
10 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