MK-PROFILE-COMPACT(1)
π MK-PROFILE-COMPACT(1) π
okay bestie, so this is a page from the User Contributed Perl Documentation collection, and it's about a lil tool called mk-profile-compact β she's a Maatkit girlie and she is lowkey a genius. let's get into it β¨
πΈ NAME πΈ
mk-profile-compact β compact the output from mk-query-profiler. it's giving "make it cute and narrow so everything fits side by side", no cap π
π¦ SYNOPSIS π¦
Usage: mk-profile-compact [OPTION...] [FILE...]
mk-profile-compact aligns query profiler results side by side for easy comparison. With no FILE, or when FILE is -, read from standard input. (yes bestie, that dash means "read from stdin", classic π)
To view queries 2, 4 and 6 side by side:
mk-profile-compact --queries 2,4,6 profile-results.txt
To view summaries from two runs side by side:
mk-profile-compact --mode SUMMARY results-1.txt results-2.txt
β οΈ RISKS β οΈ
okay so this whole section exists to keep you informed about the potential risks β known or unknown β of using this tool. the two main categories of risk are (1) risks from the nature of the tool (like, read-only tools vs read-write tools, iykyk) and (2) risks from bugs π
mk-profile-compact is read-only and very low-risk. she's an angel. she does not touch your stuff. periodt. π«Ά
At the time of this release, we know of no bugs that could cause serious harm to users.
The authoritative source for updated information is always the online issue tracking system. Issues that affect this tool will be marked as such. You can see a list of such issues at the following URL: <http://www.maatkit.org/bugs/mk-profile-compact>.
See also "BUGS" for more information on filing bugs and getting help. π
β¨ DESCRIPTION β¨
mk-profile-compact slices and aligns the output from mk-query-profiler so you can compare profile results side by side easily. it prints the first profile result intact, but each subsequent result is trimmed to be as narrow as possible, then aligned next to the first. the way that first one stays whole and everyone else gets squished in next to her... main character energy fr fr π
You can also use this to examine only some profile results. For example, if you have a set of queries to get a table into a known state, and then a query you want to profile, you can ignore the setup queries. This is typically easy to do with a command-line option like --queries 4,8,12,16,20 to view every 4th query. (sneaky lil trick, love that for you π
)
If the first profile it sees is labeled QUERY X, it will only look at QUERY profiles from then on. The same holds for SUMMARY profiles. This is because there are different numbers of lines in QUERY and SUMMARY profiles β like, they're just built different, okay? π You can specify which kind of profile result you want to process. See mk-query-profiler for the full list of types. π¦
π OPTIONS π
This tool accepts additional command-line arguments. Refer to the "SYNOPSIS" and usage information for details.
--configβ type: Array. Read this comma-separated list of config files; if specified, this must be the first option on the command line. (first!! no cutting the line bestie π¨)--headersβ type: int; default:2000. Reprint headers every N queries.--helpβ Show help and exit. π«Ά--modeβ type: string. What type of reports (EXTERNAL,QUERY,SUMMARY) to process.--queriesβ type: hash. Process only this comma-separated list of queries.--versionβ Show version and exit. β¨
π DOWNLOADING π
You can download Maatkit from Google Code at <http://code.google.com/p/maatkit/>, or you can get any of the tools easily with a command like the following:
wget http://www.maatkit.org/get/toolname
or
wget http://www.maatkit.org/trunk/toolname
Where toolname can be replaced with the name (or fragment of a name) of any of the Maatkit tools. Once downloaded, they're ready to run; no installation is needed (slay, zero setup π). The first URL gets the latest released version of the tool, and the second gets the latest trunk code from Subversion.
π ENVIRONMENT π
The environment variable MKDEBUG enables verbose debugging output in all of the Maatkit tools:
MKDEBUG=1 mk-....
β SYSTEM REQUIREMENTS β
You need Perl and some core packages that ought to be installed in any reasonably new version of Perl. that's it bestie, that's the whole list π§
π BUGS π
For a list of known bugs see <http://www.maatkit.org/bugs/mk-profile-compact>.
Please use Google Code Issues and Groups to report bugs or request support: <http://code.google.com/p/maatkit/>. You can also join #maatkit on Freenode to discuss Maatkit. (come hang out π)
Please include the complete command-line used to reproduce the problem you are seeing, the version of all MySQL servers involved, the complete output of the tool when run with --version, and if possible, debugging output produced by running with the MKDEBUG=1 environment variable. give us everything, we're nosy and we wanna help π«Ά
π COPYRIGHT, LICENSE AND WARRANTY π
This program is copyright 2007-2011 Baron Schwartz. Feedback and improvements are welcome. (pls send feedback, we're obsessed with it π)
THIS PROGRAM IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
like, fr fr, no promises, no warranty, no cap. π
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2; OR the Perl Artistic License. On UNIX and similar systems, you can issue man perlgpl or man perlartistic to read these licenses. pick your fave, both are valid π
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
πΈ SEE ALSO πΈ
See also mk-query-profiler.
π¦ AUTHOR π¦
Baron Schwartz
β¨ ABOUT MAATKIT β¨
This tool is part of Maatkit, a toolkit for power users of MySQL. Maatkit was created by Baron Schwartz; Baron and Daniel Nichter are the primary code contributors. Both are employed by Percona. Financial support for Maatkit development is primarily provided by Percona and its clients. π
π VERSION π
This manual page documents Ver 1.1.22 Distrib 7540 $Revision: 7477 $.
and that's the whole page bestie!! π this one's documented by perl v5.42.0, dated 2025-07-24 β yeah she's been around a minute, iconic behavior honestly πβ¨ go forth and compare your profiles side by side, you got this ππ¦π
π¦ where this page comes from
- fedora 43: maatkit 7540-39.fc43 Β· GPL-2.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