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

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

Serving Software Downloads in 976 Categories, Downloaded 30.153.975 Times

Devel::TrackObjects 0.2

  Date Added: October 06, 2010  |  Visits: 505

Devel::TrackObjects

Report Broken Link
Printer Friendly Version


Product Homepage
Download (70 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
DEVEL::TRACKOBJECTS RELATED
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  -  IP-based Determination of a Visitor's Country 5.x-1.3
This module uses a visitor's IP address to identify the geographical location (country) of the user. The module makes this determination and stores the result as an ISO 3166 2-character country code in the Drupal $user object, but otherwise has no...
20.48 KB  
Finance  -  Excel Serial Data Writer 3.7.6.318
Data export module "Direct Excel Connection" for Accurate Printer Monitor is used for data transmit of received by Accurate Printer Monitor and picked out from byte flow by parser to programs Microsoft Excel, without use of additional means and...
1.2 MB  
Libraries  -  IO::Prompt 0.99.4
IO::Prompt is a Perl module to interactively prompt for user input. SYNOPSIS use IO::Prompt; while( prompt "next: " ) { print "You said $_n"; } By default, this module exports a single function prompt. It prompts the user to enter some...
14.34 KB  
Libraries  -  CAD::Drawing::IO::PostScript 0.03
CAD::Drawing::IO::PostScript is a Perl module with PostScript output methods. I would like this module to both load and save PostScript vector graphics, but I have not yet found a suitable PostScript parsing package. This module should be...
8.19 KB  
Libraries  -  OpenGeoDB Perl module 0.4
OpenGeDB Perl module is a module to access the OpenGeoDB database and calculate all ZIP codes in a certain radius..
3.07 KB  
Libraries  -  DBIx::Wrapper::Config 0.01
DBIx::Wrapper::Config Perl module allows the use of a configuration file in XML specifying information required to connect to databases using DBIx::Wrapper. This way, your database connection specifications can be kept in one place. Each "db"...
3.07 KB  
Libraries  -  Scrape::USPS::ZipLookup Perl Module 2.4
The United States Postal Service (USPS) has on its web site an HTML form at http://www.usps.com/zip4/ for standardizing an address. Given a firm, urbanization, street address, city, state, and zip, it will put the address into standard form...
11.26 KB  
Libraries  -  XML::Grove 0.46 Alpha
XML::Grove is a Perl module with Perl-style XML objects. SYNOPSIS use XML::Grove; # Basic parsing and grove building use XML::Grove::Builder; use XML::Parser::PerlSAX; $grove_builder = XML::Grove::Builder->new; $parser =...
27.65 KB  
Libraries  -  Debug::Message 1.00
Debug::Message is a Perl module that eases the use of debug print with level, indentation and color. SYNOPSIS use Debug::Message; use Log::Dispatch; use Log::Dispatch::Screen; my $dispatcher = Log::Dispatch->new; $dispatcher->add(...
4.1 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
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  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.12.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...
2.73 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