DBIPROF(1)
β¨ DBIPROF β¨
okay bestie, so this is dbiprof β the command-line client for DBI::ProfileData π
(from the User Contributed Perl Documentation, if you were wondering)
πΈ NAME πΈ
dbiprof β command-line client for DBI::ProfileData
π SYNOPSIS π
Wanna see a report of the ten queries with the longest total runtime in the profile dump file prof1.out? Say less:
dbiprof prof1.out
Wanna see the top 10 most frequently run queries in the profile file dbi.prof (which is the default, iykyk):
dbiprof --sort count
And the same report but with 15 entries? Obsessed:
dbiprof --sort count --number 15
π DESCRIPTION π
So this tool is a command-line client for the DBI::ProfileData. It lets you analyze the profile data file produced by DBI::ProfileDumper and produce various useful reports. Basically it's giving data girlie π
and honestly? She ate.
β¨ OPTIONS β¨
This program accepts the following options, no cap:
--number Nβ produce this many items in the report. Defaults to10. But if you set it to"all"then literally every result is shown. all of them. periodt.--sort fieldβ sort results by the given field. Sorting by multiple fields isn't currently supported (patches welcome, bestie, the devs literally said so π«Ά). The available sort fields are:totalβ sorts by total time run time across all runs. This is the default sort. main character energy fr.longestβ sorts by the longest single run.countβ sorts by total number of runs.firstβ sorts by the time taken in the first run.shortestβ sorts by the shortest single run.key1β sorts by the value of the first element in the Path, which should be numeric. You can also sort by"key2"and"key3"π
--reverseβ reverses the selected sort. So for example, to see a report of the shortest overall time:
dbiprof --sort total --reverse
--match keyN=valueβ consider only items where the specified key matches the given value. Keys are numbered from 1. For example, let's say you used aDBI::ProfilePath of:
[ DBIprofile_Statement, DBIprofile_Methodname ]
And called dbiprof as in:
dbiprof --match key2=execute
Your report would only show execute queries, leaving out prepares, fetches, etc. filtering queen π
If the value given starts and ends with slashes ("/") then it will be treated as a regular expression. For example, to only include SELECT queries where key1 is the statement:
dbiprof --match key1=/^SELECT/
By default the match expression is matched case-insensitively, but this can be changed with the --case-sensitive option.
--exclude keyN=valueβ remove items for where the specified key matches the given value. For example, to exclude all prepare entries wherekey2is the method name:
dbiprof --exclude key2=prepare
Like "--match", if the value given starts and ends with slashes ("/") then it will be treated as a regular expression. For example, to exclude UPDATE queries where key1 is the statement:
dbiprof --match key1=/^UPDATE/
By default the exclude expression is matched case-insensitively, but this can be changed with the --case-sensitive option.
--case-sensitiveβ using this option causes--matchand--excludeto work case-sensitively. Defaults to off.--deleteβ sets the"DeleteFiles"option toDBI::ProfileDatawhich causes the files to be deleted after reading. SeeDBI::ProfileDatafor more details. (yes it really deletes them, be normal about it π)--dumpnodesβ print the list of nodes in the form of a perl data structure. Use the"-sort"option if you want the list sorted.--versionβ print the dbiprof version number and exit.
π AUTHOR π
Sam Tregar <sam@tregar.com>
π COPYRIGHT AND LICENSE π
Copyright (C) 2002 Sam Tregar
This program is free software; you can redistribute it and/or modify it under the same terms as Perl 5 itself.
π¦ SEE ALSO π¦
DBI::ProfileDumper, DBI::Profile, DBI.
so yeah, that's the whole thing, bestie π«Ά this was perl v5.42.3, dated 2026-10-19 β that's the DBIPROF(1) energy, slay, go profile something β¨π
π¦ where this page comes from
- fedora 43: perl-DBI 1.656-1.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- fedora 44: perl-DBI 1.656-1.fc44 Β· 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