summaryrefslogtreecommitdiffstats
path: root/contrib/perl5/t/lib/dprof/test2_v
blob: 8b775b313155071dde7fc90f91cfe70950214688 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# perl

use V;

dprofpp( '-T' );
$expected =
qq{main::bar
main::bar
main::baz
   main::bar
   main::bar
   main::bar
   main::foo
      main::bar
main::foo
   main::bar
};
report 5, sub { $expected eq $results };

dprofpp('-TF');
report 6, sub { $expected eq $results };

dprofpp( '-t' );
$expected =
qq{main::bar (2x)
main::baz
   main::bar (3x)
   main::foo
      main::bar
main::foo
   main::bar
};
report 7, sub { $expected eq $results };

dprofpp('-tF');
report 8, sub { $expected eq $results };
OpenPOWER on IntegriCloud