Man page for mk-profile-compact
August 24, 2007 – 5:34 pmMK-PROFILE-COMPACT
Section: User Contributed Perl Documentation (1)
Updated: 2008-06-01
Index
Return to Main Contents
NAME
mk-profile-compact - Compact the output from mk-query-profiler.
SYNOPSIS
To view queries 2, 4 and 6 side by side:
mk-profile-compact -q 2,4,6 profile-results.txt
To view summaries from two runs side by side:
mk-profile-compact -m SUMMARY results-1.txt results-2.txt
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.
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.
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. You can
specify which kind of profile result you want to process. See
mk-query-profiler for the full list of types.
DOWNLOADING
You can download Maatkit from the Sourceforge website at
<http://sourceforge.net/projects/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. The first URL gets the latest released version of the tool, and the
second gets the latest trunk code from Subversion.
OPTIONS
- –queries
short form: -q; type: hashProcess only this comma-separated list of queries.
- –mode
short form: -m; type: stringWhat type of reports (EXTERNAL, QUERY, SUMMARY) to process.
- –headers
short form: -h; type: int; default: 2000Reprint headers every N queries.
ENVIRONMENT
The environment variable "MKDEBUG" enables verbose debugging output in all of
the Maatkit tools:
MKDEBUG=1 mk-….
BUGS
Please use the Sourceforge bug tracker, forums, and mailing lists to request
support or report bugs: <http://sourceforge.net/projects/maatkit/>.
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.
SEE ALSO
LICENSE
This program is copyright (c) 2007 Baron Schwartz.
Feedback and improvements are welcome.
THIS PROGRAM IS PROVIDED “AS IS” AND WITHOUT ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
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.
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.
AUTHOR
VERSION
This manual page documents Ver 1.1.10 Distrib 1972 $Revision: 1970 $.