summaryrefslogtreecommitdiff
path: root/Master/tlpkg/tlperl/lib/Devel/DProf/test2_v
diff options
context:
space:
mode:
Diffstat (limited to 'Master/tlpkg/tlperl/lib/Devel/DProf/test2_v')
-rw-r--r--Master/tlpkg/tlperl/lib/Devel/DProf/test2_v36
1 files changed, 36 insertions, 0 deletions
diff --git a/Master/tlpkg/tlperl/lib/Devel/DProf/test2_v b/Master/tlpkg/tlperl/lib/Devel/DProf/test2_v
new file mode 100644
index 00000000000..8b775b31315
--- /dev/null
+++ b/Master/tlpkg/tlperl/lib/Devel/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 };