1Devel::NYTProf::FileInfUos(e3r)Contributed Perl DocumentDaetvieoln::NYTProf::FileInfo(3)
2
3
4

NAME

6       Devel::NYTProf::FileInfo
7

METHODS

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