GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  PERL::METRICS::LITE::ANALYSIS (3)

.ds Aq ’

NAME

Perl::Metrics::Lite::Analysis - Contains anaylsis results.

CONTENTS

SYNOPSIS

This is the class of objects returned by the analyze_files method of the <B>Perl::Metrics::LiteB> class.

Normally you would not create objects of this class directly, instead you get them by calling the analyze_files method on a <B>Perl::Metrics::LiteB> object.

VERSION

This is VERSION 0.01

DESCRIPTION

USAGE

    new



  $analysis = Perl::Metrics::Lite::Analsys->new( \@file_objects )



Takes an arrayref of <B>Perl::Metrics::Lite::Analysis::FileB> objects and returns a new Perl::Metrics::Lite::Analysis object.

    data

The raw data for the analysis. This is the arrayref you passed as the argument to new();

    files

Arrayref of file paths, in the order they were encountered.

    file_count

How many Perl files were found.

    lines

Total lines in all files, excluding comments and pod.

    main_stats

Returns a hashref of data based the main code in all files, that is, on the code minus all named subroutines.



  {
    lines             => 723,
  }



    file_stats

Returns an arrayref of hashrefs, each entry is for one analyzed file, in the order they were encountered. The main_stats slot in the hashref is for all the code in the file <B>outside ofB> any named subroutines.



   [
      {
        path => /path/to/file,
        main_stats => {
                        lines             => 23,
                        path              => /path/to/file,
                        name              => {code not in named subroutines},
                       },
        },
        ...
   ]



    sub_stats

Returns an hashref of subroutine metrics, each entry is for one analyzed file.

    packages

Arrayref of unique packages found in code.

    package_count

How many unique packages found.

    subs

Array ref containing hashrefs of all named subroutines, in the order encounted.

Each hashref has the structure:



    {
         lines => 19,
         line_number => 5,
         mccabe_complexity => 6,
         name => databaseRecords,
         path => ../path/to/File.pm,
    }



    sub_count

How many subroutines found.

BUGS AND LIMITATIONS

None reported yet ;-)

DEPENDENCIES

Readonly
Statistics::Basic

SUPPORT

Via github

    Disussion Forum

http://www.cpanforum.com/dist/Perl-Metrics-Lite

    Bug Reports

http://rt.cpan.org/NoAuth/Bugs.html?Dist=Perl-Metrics-Lite

AUTHOR

Dann <techmemo {at} gmail.com>

SEE ALSO

Perl::Metrics Perl::Metrics::Simple
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 PERL::METRICS::LITE::ANALYSIS (3) 2012-03-03

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.