Test2::...IProfile(3)

πŸ“¦
version 0.2.6 Β· 2 versions
, in fedora 43

✨ Test2::Plugin::DBIProfile ✨

okay bestie, so this page is Test2::...IProfile(3) from the User Contributed Perl Documentation set β€” yeah the filename got clipped mid-word, the full glow-up name is Test2::Plugin::DBIProfile and that's what we're talking about here πŸ’…

NAME

Test2::Plugin::DBIProfile β€” the plugin that turns on DBI profiling and then shows you the receipts πŸ’–


DESCRIPTION

So the whole vibe is this: it flips on DBI::Profile globally, which means all your DBI profiling data gets collected. Like, everywhere. Then once testing wraps up, an event gets produced that contains and displays that profiling data for you. She's thorough, she's got range, she's showing you everything 🫢

The normal output looks like this, no cap:

# DBI::Profile: 0.000824s (24 calls) xxx.t @ 2019-08-16 14:24:01

And if you're using Test2::Harness aka App::Yath? Oh you're eating good β€” detailed profiling data is available in the event log. iykyk ✨


SYNOPSIS

Drop this in your test file:

use Test2::Plugin::DBIProfile;

It's also lowkey iconic at the command line for a one-time-use situation:

$ perl -MTest2::Plugin::DBIProfile path/to/test.t

And you can also specify a 'path' for DBI::Profile, like so:

use Test2::Plugin::DBIProfile "!MethodClass";

For all the path options, go peek at "ENABLING A PROFILE" in DBI::Profile β€” that's where the full menu lives πŸ“‹

Now the default behaviour, which you need to know: it uses whatever is already sitting in $ENV{DBI_PROFILE} if that's set, and falls back to "!MethodClass" if it's not. That's the rule, periodt πŸŽ€


SOURCE

The source code repository for Test2-Suite lives right here, bestie:

https://github.com/Test-More/Test2-Suite/

go star it, she deserves it ⭐


MAINTAINERS

  • Chad Granum <exodist@cpan.org>

AUTHORS

  • Chad Granum <exodist@cpan.org>

Copyright 2019 Chad Granum <exodist@cpan.org>.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See http://dev.perl.org/licenses/


and that's the whole page, angel πŸ’œ it's giving perl v5.42.0, dated 2025-07-25, and yes it's the Test2::...IProfile(3) one β€” the truncated-name queen herself. mwah, go profile something 🌸

πŸ“¦ where this page comes from