Why not adopt me?
NAME
Perl::ToPerl6::Statistics - Compile stats on Perl::ToPerl6 transformations.
DESCRIPTION
This class accumulates statistics on Perl::ToPerl6 transformations across one or more files. NOTE: This class is experimental and subject to change.
INTERFACE SUPPORT
This is considered to be a non-public class. Its interface is subject to change without notice.
METHODS
new()-
Create a new instance of Perl::ToPerl6::Statistics. No arguments are supported at this time.
accumulate( $doc, \@transformations )-
Accumulates statistics about the
$docand the@transformationsthat were found. modules()-
The number of chunks of code (usually files) that have been analyzed.
subs()-
The total number of subroutines analyzed by this ToPerl6.
statements()-
The total number of statements analyzed by this ToPerl6.
lines()-
The total number of lines of code analyzed by this ToPerl6.
transformations_by_necessity()-
The number of transformations of each necessity found by this ToPerl6 as a reference to a hash keyed by necessity.
transformations_by_transformer()-
The number of transformations of each transformer found by this ToPerl6 as a reference to a hash keyed by full transformer name.
total_transformations()-
The total number of transformations found by this ToPerl6.
statements_other_than_subs()-
The total number of statements minus the number of subroutines. Useful because a subroutine is considered a statement by PPI.
transformations_per_file()-
The total transformations divided by the number of modules.
transformations_per_statement()-
The total transformations divided by the number statements minus subroutines.
transformations_per_line_of_code()-
The total transformations divided by the lines of code.
AUTHOR
Elliot Shank <perl@galumph.com>
COPYRIGHT
Copyright (c) 2007-2011 Elliot Shank.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of this license can be found in the LICENSE file included with this module.