summaryrefslogtreecommitdiffstats
path: root/contrib/perl5/t/lib/dprof/test2_v
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/perl5/t/lib/dprof/test2_v')
-rw-r--r--contrib/perl5/t/lib/dprof/test2_v36
1 files changed, 36 insertions, 0 deletions
diff --git a/contrib/perl5/t/lib/dprof/test2_v b/contrib/perl5/t/lib/dprof/test2_v
new file mode 100644
index 0000000..8b775b3
--- /dev/null
+++ b/contrib/perl5/t/lib/dprof/test2_v
@@ -0,0 +1,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