Tim Bunce > Devel-NYTProf-4.12 > Devel::NYTProf::FileInfo

Download:
Devel-NYTProf-4.12.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

New  6
Open  9
Stalled  2
View/Report Bugs
Source   Latest Release: Devel-NYTProf-5.06

sub_call_lines

  $hash = $fi->sub_call_lines;

Returns a reference to a hash containing information about subroutine calls made at individual lines within the source file. Returns undef if no subroutine calling information is available.

The keys of the returned hash are line numbers. The values are references to hashes with fully qualified subroutine names as keys. Each hash value is an reference to an array containing an integer call count (how many times the sub was called from that line of that file) and an inclusive time (how much time was spent inside the sub when it was called from that line of that file).

For example, if the following was line 42 of a file foo.pl:

  ++$wiggle if foo(24) == bar(42);

that line was executed once, and foo and bar were imported from pkg1, then sub_call_lines() would return something like:

  {
      42 => {
        'pkg1::foo' => [ 1, 0.02093 ],
        'pkg1::bar' => [ 1, 0.00154 ],
      },
  }

evals_by_line

  # { line => { fid_of_eval_at_line => $fi, ... }, ... }
  $hash = $fi->evals_by_line;

Returns a reference to a hash containing information about string evals executed at individual lines within a source file.

The keys of the returned hash are line numbers. The values are references to hashes with file id integers as keys and FileInfo objects as values.

syntax highlighting: