1Test2::Plugin::DBIProfiUlsee(r3)Contributed Perl DocumenTteastti2o:n:Plugin::DBIProfile(3)
2
3
4

NAME

6       Test2::Plugin::DBIProfile - Plugin to enable and display DBI profiling.
7

DESCRIPTION

9       This will enable DBI::Profile globally so that DBI profiling data is
10       collected. Once testing is complete an event will be produced which
11       contains and displays the profiling data.
12
13       Normal output looks like this:
14
15           # DBI::Profile: 0.000824s (24 calls) xxx.t @ 2019-08-16 14:24:01
16
17       If you use Test2::Harness aka App::Yath detailed profiling data is
18       available in the event log.
19

SYNOPSIS

21           use Test2::Plugin::DBIProfile;
22
23       This is also useful at the command line for 1-time use:
24
25           $ perl -MTest2::Plugin::DBIProfile path/to/test.t
26
27       You can also specify a 'path' for DBI::Profile:
28
29           use Test2::Plugin::DBIProfile "!MethodClass";
30
31       See "ENABLING A PROFILE" in DBI::Profile for path options.
32
33       The default is to use whatever is already in $ENV{DBI_PROFILE} if it is
34       set, and to fallback to "!MethodClass" otherwise.
35

SOURCE

37       The source code repository for Test2-Suite can be found at
38       https://github.com/Test-More/Test2-Suite/.
39

MAINTAINERS

41       Chad Granum <exodist@cpan.org>
42

AUTHORS

44       Chad Granum <exodist@cpan.org>
45
47       Copyright 2019 Chad Granum <exodist@cpan.org>.
48
49       This program is free software; you can redistribute it and/or modify it
50       under the same terms as Perl itself.
51
52       See http://dev.perl.org/licenses/
53
54
55
56perl v5.32.1                      2021-01-27      Test2::Plugin::DBIProfile(3)
Impressum