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

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

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.001   Source  

NAME ^

Benchmark::Perl::Formance::Plugin::Skeleton

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.

AUTHOR ^

Steffen Schwigon <ss5@renormalist.net>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2012 by Steffen Schwigon.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: