Steffen Schwigon > Benchmark-Perl-Formance-0.21 > Benchmark::Perl::Formance::Plugin::Skeleton

Download:
perl-formance/Benchmark-Perl-Formance-0.21.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.001   Source   Latest Release: Benchmark-Perl-Formance-0.27

NAME ^

Benchmark::Perl::Formance::Plugin::Skeleton - An example plugin

ABOUT ^

You can create your own plugins by just creating a module in the namespace Benchmark::Perl::Formance::Plugin::* which simply has to provide a

 package Benchmark::Perl::Formance::Plugin::HotStuff;
 
 sub main {
     my ($options) = @_;
     
     # do something
     
     return { result_key1 => $value1,
              result_key2 => $value2,
            }
  }

To use it call the frontend tool and provide your pluginname via --plugins:

  $ perl-formance --plugins=HotStuff

If your module should become a default part of the Benchmark::Perl::Formance suite, then patch the $DEFAULT_PLUGINS in lib/Benchmark/Perl/Formance.pm and/or email me.

syntax highlighting: