Devel::Memalyzer::Plugin - Plugin documentation and namespace
Plugins are modules that provide extra columns of memory usage data to Devel::Memalyzer.
All plugins must implement the following methods:
Constructor, you can use base 'Devel::Memalyzer::Base' to get one for free.
function that returns colum => value pairs. This is where the data is collected.
package Devel::Memalyzer::Plugin::MyPlugin; use strict; use warnings; use base 'Devel::Memalyzer::Base'; sub collect { my $self = shift; my $value = $self->do_stuff; return ( rand_thing => $value, ... ); } sub do_stuff { return rand(10) } 1;
Chad Granum exodist7@gmail.com
Copyright (C) 2010 Rentrak Corperation
2 POD Errors
The following errors were encountered while parsing the POD:
Unknown directive: =over4
'=item' outside of any '=over'
To install Devel::Memalyzer, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Devel::Memalyzer
CPAN shell
perl -MCPAN -e shell install Devel::Memalyzer
For more information on module installation, please visit the detailed CPAN module installation guide.