1Devel::Profiler::Test(3U)ser Contributed Perl DocumentatiDoenvel::Profiler::Test(3)
2
3
4
6 Devel::Profiler::Test - test support library for Devel::Profiler
7
9 # plan a test for each call to Devel::Profiler::Test
10 use Test::More tests => 2;
11 use Devel::Profiler::Test qw(profile_code check_tree);
12
13 profile_code(<<END)
14 ... some code to profile ...
15 END
16
17 check_tree(<<END)
18 ... a tree in the format produced by dprofpp -T ...
19 END
20
22 This is a test support library for Devel::Profiler. It's probably only
23 useful inside Devel::Profiler's test scripts, but you never know!
24
26 Copyright (C) 2002 Sam Tregar
27
28 This program is free software; you can redistribute it and/or modify it
29 under the same terms as Perl 5 itself.
30
32 Sam Tregar <sam@tregar.com>
33
35 Devel::Profiler
36
37
38
39perl v5.32.1 2021-01-27 Devel::Profiler::Test(3)