Chad Granum

NAME

Devel::Memalyzer::Plugin - Plugin documentation and namespace

DESCRIPTION

Plugins are modules that provide extra columns of memory usage data to Devel::Memalyzer.

METHODS

All plugins must implement the following methods:

$obj = $class->new()

Constructor, you can use base 'Devel::Memalyzer::Base' to get one for free.

%data = $obj->collect()

function that returns colum => value pairs. This is where the data is collected.

SYNOPSYS

    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;

AUTHORS

Chad Granum exodist7@gmail.com

COPYRIGHT

Copyright (C) 2010 Rentrak Corperation

2 POD Errors

The following errors were encountered while parsing the POD:

Around line 24:

Unknown directive: =over4

Around line 26:

'=item' outside of any '=over'