pt-ioprofile

发布时间 2023-06-15 10:41:37作者: Coye

pt-ioprofile 属于Percona Toolkit 下的一个工具

下载地址:https://www.percona.com/software/database-tools/percona-toolkit

简单看一下使用说明

pt-ioprofile --help
Usage: pt-ioprofile [OPTIONS] [FILE]

For more information, 'man pt-ioprofile' or 'perldoc /usr/local/bin/pt-ioprofile'.

Command line options:

  --aggregate       The aggregate function, either C<sum> or C<avg>.
  --cell            The cell contents.
  --group-by        The group-by item.
  --help            Print help and exit.
  --profile-pid     The PID to profile, overrides L<"--profile-process">.
  --profile-process The process name to profile.
  --run-time        How long to profile.
  --save-samples    Filename to save samples in; these can be used for later
                    analysis.
  --version         Print the tool's version and exit.

Options and values after processing arguments:

  --aggregate                      sum
  --cell                           times
  --group-by                       filename
  --help                           TRUE
  --profile-pid                    (No value)
  --profile-process                mysqld
  --run-time                       30
  --save-samples                   (No value)
  --version                        FALSE