Test2::...IProfile(3)
β¨ 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
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
- fedora 43: perl-Test2-Plugin-DBIProfile 0.2.6-14.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms