1Devel::NYTProf::FileInfUos(e3r)Contributed Perl DocumentDaetvieoln::NYTProf::FileInfo(3)
2
3
4
5   sub_call_lines
6         $hash = $fi->sub_call_lines;
7
8       Returns a reference to a hash containing information about subroutine
9       calls made at individual lines within the source file.  Returns undef
10       if no subroutine calling information is available.
11
12       The keys of the returned hash are line numbers. The values are
13       references to hashes with fully qualified subroutine names as keys.
14       Each hash value is an reference to an array containing an integer call
15       count (how many times the sub was called from that line of that file)
16       and an inclusive time (how much time was spent inside the sub when it
17       was called from that line of that file).
18
19       For example, if the following was line 42 of a file "foo.pl":
20
21         ++$wiggle if foo(24) == bar(42);
22
23       that line was executed once, and foo and bar were imported from pkg1,
24       then sub_call_lines() would return something like:
25
26         {
27             42 => {
28               'pkg1::foo' => [ 1, 0.02093 ],
29               'pkg1::bar' => [ 1, 0.00154 ],
30             },
31         }
32
33   evals_by_line
34         # { line => { fid_of_eval_at_line => $fi, ... }, ... }
35         $hash = $fi->evals_by_line;
36
37       Returns a reference to a hash containing information about string evals
38       executed at individual lines within a source file.
39
40       The keys of the returned hash are line numbers. The values are
41       references to hashes with file id integers as keys and FileInfo objects
42       as values.
43
44
45
46perl v5.28.0                      2013-09-03       Devel::NYTProf::FileInfo(3)
Impressum