Benchmark::Perl::Formance::Plugin::Skeleton
Benchmark::Perl::Formance::Plugin::Skeleton - An example plugin
You can create your own plugins by just creating a module in the namespace Benchmark::Perl::Formance::Plugin::* which simply has to provide a
Benchmark::Perl::Formance::Plugin::*
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.
$DEFAULT_PLUGINS
Steffen Schwigon <ss5@renormalist.net>
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.
To install Benchmark::Perl::Formance, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Benchmark::Perl::Formance
CPAN shell
perl -MCPAN -e shell install Benchmark::Perl::Formance
For more information on module installation, please visit the detailed CPAN module installation guide.