mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-28 00:21:56 +00:00
Work in progress: Redesign pt-diskstats in Perl.
Mostly bits and pieces at the moments. ReadKeyMini is a portable-ish Term::ReadKey. Used here by DiskstatsMenu, which is currently only for show. Diskstats has most of the logic of the old pt-diskstats, with parts now implemented by the DiskstatsGroupBy* classes; The latter subclass the former. As mentioned at the start, this is a work in progress. In addition to to not having all the parts attached, also missing are the data-gathering mode, the command-line argument parsing, and a large amount of tests.
This commit is contained in:
38
t/pt-diskstats/expected/disk_diskstats-002.txt
Normal file
38
t/pt-diskstats/expected/disk_diskstats-002.txt
Normal file
@@ -0,0 +1,38 @@
|
||||
#ts device rd_s rd_avkb rd_mb_s rd_mrg rd_cnc rd_rt wr_s wr_avkb wr_mb_s wr_mrg wr_cnc wr_rt busy in_prg
|
||||
{101} ram0 0.0 0.0 0.0 0% 0.0 0.0 0.0 0.0 0.0 0% 0.0 0.0 0% 0
|
||||
{101} ram1 0.0 0.0 0.0 0% 0.0 0.0 0.0 0.0 0.0 0% 0.0 0.0 0% 0
|
||||
{101} ram2 0.0 0.0 0.0 0% 0.0 0.0 0.0 0.0 0.0 0% 0.0 0.0 0% 0
|
||||
{101} ram3 0.0 0.0 0.0 0% 0.0 0.0 0.0 0.0 0.0 0% 0.0 0.0 0% 0
|
||||
{101} ram4 0.0 0.0 0.0 0% 0.0 0.0 0.0 0.0 0.0 0% 0.0 0.0 0% 0
|
||||
{101} ram5 0.0 0.0 0.0 0% 0.0 0.0 0.0 0.0 0.0 0% 0.0 0.0 0% 0
|
||||
{101} ram6 0.0 0.0 0.0 0% 0.0 0.0 0.0 0.0 0.0 0% 0.0 0.0 0% 0
|
||||
{101} ram7 0.0 0.0 0.0 0% 0.0 0.0 0.0 0.0 0.0 0% 0.0 0.0 0% 0
|
||||
{101} ram8 0.0 0.0 0.0 0% 0.0 0.0 0.0 0.0 0.0 0% 0.0 0.0 0% 0
|
||||
{101} ram9 0.0 0.0 0.0 0% 0.0 0.0 0.0 0.0 0.0 0% 0.0 0.0 0% 0
|
||||
{101} ram10 0.0 0.0 0.0 0% 0.0 0.0 0.0 0.0 0.0 0% 0.0 0.0 0% 0
|
||||
{101} ram11 0.0 0.0 0.0 0% 0.0 0.0 0.0 0.0 0.0 0% 0.0 0.0 0% 0
|
||||
{101} ram12 0.0 0.0 0.0 0% 0.0 0.0 0.0 0.0 0.0 0% 0.0 0.0 0% 0
|
||||
{101} ram13 0.0 0.0 0.0 0% 0.0 0.0 0.0 0.0 0.0 0% 0.0 0.0 0% 0
|
||||
{101} ram14 0.0 0.0 0.0 0% 0.0 0.0 0.0 0.0 0.0 0% 0.0 0.0 0% 0
|
||||
{101} ram15 0.0 0.0 0.0 0% 0.0 0.0 0.0 0.0 0.0 0% 0.0 0.0 0% 0
|
||||
{101} sda 2.6 0.0 0.0 4% 0.0 3.3 46.3 0.0 0.0 25% 0.0 0.3 1% 0
|
||||
{101} sda1 0.0 0.0 0.0 0% 0.0 0.0 0.0 0.0 0.0 0% 0.0 0.0 0% 0
|
||||
{101} sda2 0.0 0.0 0.0 0% 0.0 0.0 0.0 0.0 0.0 0% 0.0 0.0 0% 0
|
||||
{101} sda3 0.0 0.0 0.0 0% 0.0 0.0 0.0 0.0 0.0 0% 0.0 0.0 0% 0
|
||||
{101} sda4 0.0 0.0 0.0 0% 0.0 0.0 0.0 0.0 0.0 0% 0.0 0.0 0% 0
|
||||
{101} sda5 0.1 0.0 0.0 31% 0.0 7.5 0.0 0.0 0.0 0% 0.0 0.0 0% 0
|
||||
{101} sda6 2.4 0.0 0.0 2% 0.0 3.1 46.3 0.0 0.0 25% 0.0 0.3 1% 0
|
||||
{101} sdb 0.0 0.0 0.0 0% 0.0 0.0 0.0 0.0 0.0 0% 0.0 0.0 0% 0
|
||||
{101} sdc 0.0 0.0 0.0 0% 0.0 0.0 0.0 0.0 0.0 0% 0.0 0.0 0% 0
|
||||
{101} dm-0 0.1 13.3 0.0 0% 0.0 5.0 3.9 8.0 0.0 0% 0.0 0.0 0% 0
|
||||
{101} dm-1 0.0 8.0 0.0 0% 0.0 3.0 2.1 8.0 0.0 0% 0.0 0.1 0% 0
|
||||
{101} dm-2 0.0 0.0 0.0 0% 0.0 0.0 0.2 8.0 0.0 0% 0.0 0.4 0% 0
|
||||
{101} dm-3 0.0 0.0 0.0 0% 0.0 0.0 3.5 8.0 0.0 0% 0.0 0.0 0% 0
|
||||
{101} dm-4 0.1 36.3 0.0 0% 0.0 2.2 3.3 8.0 0.0 0% 0.0 0.4 0% 0
|
||||
{101} dm-5 0.0 0.0 0.0 0% 0.0 0.0 0.4 8.0 0.0 0% 0.0 0.1 0% 0
|
||||
{101} dm-6 2.3 19.7 0.0 0% 0.0 3.1 48.0 35.2 0.8 0% 0.0 0.3 1% 0
|
||||
{101} sr0 0.0 0.0 0.0 0% 0.0 0.0 0.0 0.0 0.0 0% 0.0 0.0 0% 0
|
||||
{101} sdd 0.0 0.0 0.0 0% 0.0 0.0 0.0 0.0 0.0 0% 0.0 0.0 0% 0
|
||||
{101} sr1 0.0 0.0 0.0 0% 0.0 0.0 0.0 0.0 0.0 0% 0.0 0.0 0% 0
|
||||
{101} md0 0.0 0.0 0.0 0% 0.0 0.0 0.0 0.0 0.0 0% 0.0 0.0 0% 0
|
||||
{101} emcpowera 0.0 0.0 0.0 0% 0.0 0.0 0.6 33.8 0.0 76% 0.0 2.4 0% 0
|
Reference in New Issue
Block a user