mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-27 07:54:58 +00:00
Updated tests for pt-query-digest
This commit is contained in:
62
t/pt-query-digest/samples/slow033-since-2009-07-08.txt
Normal file
62
t/pt-query-digest/samples/slow033-since-2009-07-08.txt
Normal file
@@ -0,0 +1,62 @@
|
||||
|
||||
# Query 1: 0.00 QPS, 0.00x concurrency, ID 0xAC1BF726F2AB10C5 at byte 861
|
||||
# This item is included in the report because it matches --limit.
|
||||
# Scores: V/M = 0.00
|
||||
# Time range: 2009-07-25 11:19:27 to 2009-07-28 18:00:00
|
||||
# Attribute pct total min max avg 95% stddev median
|
||||
# ============ === ======= ======= ======= ======= ======= ======= =======
|
||||
# Count 66 4
|
||||
# Exec time 66 48us 12us 12us 12us 12us 0 12us
|
||||
# Lock time 0 0 0 0 0 0 0 0
|
||||
# Rows sent 0 0 0 0 0 0 0 0
|
||||
# Rows examine 0 0 0 0 0 0 0 0
|
||||
# Query size 66 68 17 17 17 17 0 17
|
||||
# String:
|
||||
# Databases db1
|
||||
# Hosts
|
||||
# Users [SQL_SLAVE]
|
||||
# Query_time distribution
|
||||
# 1us
|
||||
# 10us ################################################################
|
||||
# 100us
|
||||
# 1ms
|
||||
# 10ms
|
||||
# 100ms
|
||||
# 1s
|
||||
# 10s+
|
||||
# Tables
|
||||
# SHOW TABLE STATUS FROM `db1` LIKE 'foo'\G
|
||||
# SHOW CREATE TABLE `db1`.`foo`\G
|
||||
# EXPLAIN /*!50100 PARTITIONS*/
|
||||
SELECT * FROM foo\G
|
||||
|
||||
# Query 2: 2 QPS, 0.00x concurrency, ID 0x07AEF8EFAB3FA3CE at byte 509 ___
|
||||
# This item is included in the report because it matches --limit.
|
||||
# Scores: V/M = 0.00
|
||||
# Time range: 2009-07-27 11:19:30 to 11:19:31
|
||||
# Attribute pct total min max avg 95% stddev median
|
||||
# ============ === ======= ======= ======= ======= ======= ======= =======
|
||||
# Count 33 2
|
||||
# Exec time 33 24us 12us 12us 12us 12us 0 12us
|
||||
# Lock time 0 0 0 0 0 0 0 0
|
||||
# Rows sent 0 0 0 0 0 0 0 0
|
||||
# Rows examine 0 0 0 0 0 0 0 0
|
||||
# Query size 33 34 17 17 17 17 0 17
|
||||
# String:
|
||||
# Databases db1 (1/50%), db2 (1/50%)
|
||||
# Hosts
|
||||
# Users [SQL_SLAVE]
|
||||
# Query_time distribution
|
||||
# 1us
|
||||
# 10us ################################################################
|
||||
# 100us
|
||||
# 1ms
|
||||
# 10ms
|
||||
# 100ms
|
||||
# 1s
|
||||
# 10s+
|
||||
# Tables
|
||||
# SHOW TABLE STATUS FROM `db2` LIKE 'bar'\G
|
||||
# SHOW CREATE TABLE `db2`.`bar`\G
|
||||
# EXPLAIN /*!50100 PARTITIONS*/
|
||||
SELECT * FROM bar\G
|
@@ -1,62 +1,2 @@
|
||||
|
||||
# Query 1: 0.00 QPS, 0.00x concurrency, ID 0xAC1BF726F2AB10C5 at byte 861
|
||||
# This item is included in the report because it matches --limit.
|
||||
# Scores: V/M = 0.00
|
||||
# Time range: 2009-07-25 11:19:27 to 2009-07-28 18:00:00
|
||||
# Attribute pct total min max avg 95% stddev median
|
||||
# ============ === ======= ======= ======= ======= ======= ======= =======
|
||||
# Count 66 4
|
||||
# Exec time 66 48us 12us 12us 12us 12us 0 12us
|
||||
# Lock time 0 0 0 0 0 0 0 0
|
||||
# Rows sent 0 0 0 0 0 0 0 0
|
||||
# Rows examine 0 0 0 0 0 0 0 0
|
||||
# Query size 66 68 17 17 17 17 0 17
|
||||
# String:
|
||||
# Databases db1
|
||||
# Hosts
|
||||
# Users [SQL_SLAVE]
|
||||
# Query_time distribution
|
||||
# 1us
|
||||
# 10us ################################################################
|
||||
# 100us
|
||||
# 1ms
|
||||
# 10ms
|
||||
# 100ms
|
||||
# 1s
|
||||
# 10s+
|
||||
# Tables
|
||||
# SHOW TABLE STATUS FROM `db1` LIKE 'foo'\G
|
||||
# SHOW CREATE TABLE `db1`.`foo`\G
|
||||
# EXPLAIN /*!50100 PARTITIONS*/
|
||||
SELECT * FROM foo\G
|
||||
|
||||
# Query 2: 2 QPS, 0.00x concurrency, ID 0x07AEF8EFAB3FA3CE at byte 509 ___
|
||||
# This item is included in the report because it matches --limit.
|
||||
# Scores: V/M = 0.00
|
||||
# Time range: 2009-07-27 11:19:30 to 11:19:31
|
||||
# Attribute pct total min max avg 95% stddev median
|
||||
# ============ === ======= ======= ======= ======= ======= ======= =======
|
||||
# Count 33 2
|
||||
# Exec time 33 24us 12us 12us 12us 12us 0 12us
|
||||
# Lock time 0 0 0 0 0 0 0 0
|
||||
# Rows sent 0 0 0 0 0 0 0 0
|
||||
# Rows examine 0 0 0 0 0 0 0 0
|
||||
# Query size 33 34 17 17 17 17 0 17
|
||||
# String:
|
||||
# Databases db1 (1/50%), db2 (1/50%)
|
||||
# Hosts
|
||||
# Users [SQL_SLAVE]
|
||||
# Query_time distribution
|
||||
# 1us
|
||||
# 10us ################################################################
|
||||
# 100us
|
||||
# 1ms
|
||||
# 10ms
|
||||
# 100ms
|
||||
# 1s
|
||||
# 10s+
|
||||
# Tables
|
||||
# SHOW TABLE STATUS FROM `db2` LIKE 'bar'\G
|
||||
# SHOW CREATE TABLE `db2`.`bar`\G
|
||||
# EXPLAIN /*!50100 PARTITIONS*/
|
||||
SELECT * FROM bar\G
|
||||
# No events processed.
|
||||
|
62
t/pt-query-digest/samples/slow033-untl-1d.txt
Normal file
62
t/pt-query-digest/samples/slow033-untl-1d.txt
Normal file
@@ -0,0 +1,62 @@
|
||||
|
||||
# Query 1: 0.00 QPS, 0.00x concurrency, ID 0xAC1BF726F2AB10C5 at byte 861
|
||||
# This item is included in the report because it matches --limit.
|
||||
# Scores: V/M = 0.00
|
||||
# Time range: 2009-07-25 11:19:27 to 2009-07-28 18:00:00
|
||||
# Attribute pct total min max avg 95% stddev median
|
||||
# ============ === ======= ======= ======= ======= ======= ======= =======
|
||||
# Count 66 4
|
||||
# Exec time 66 48us 12us 12us 12us 12us 0 12us
|
||||
# Lock time 0 0 0 0 0 0 0 0
|
||||
# Rows sent 0 0 0 0 0 0 0 0
|
||||
# Rows examine 0 0 0 0 0 0 0 0
|
||||
# Query size 66 68 17 17 17 17 0 17
|
||||
# String:
|
||||
# Databases db1
|
||||
# Hosts
|
||||
# Users [SQL_SLAVE]
|
||||
# Query_time distribution
|
||||
# 1us
|
||||
# 10us ################################################################
|
||||
# 100us
|
||||
# 1ms
|
||||
# 10ms
|
||||
# 100ms
|
||||
# 1s
|
||||
# 10s+
|
||||
# Tables
|
||||
# SHOW TABLE STATUS FROM `db1` LIKE 'foo'\G
|
||||
# SHOW CREATE TABLE `db1`.`foo`\G
|
||||
# EXPLAIN /*!50100 PARTITIONS*/
|
||||
SELECT * FROM foo\G
|
||||
|
||||
# Query 2: 2 QPS, 0.00x concurrency, ID 0x07AEF8EFAB3FA3CE at byte 509 ___
|
||||
# This item is included in the report because it matches --limit.
|
||||
# Scores: V/M = 0.00
|
||||
# Time range: 2009-07-27 11:19:30 to 11:19:31
|
||||
# Attribute pct total min max avg 95% stddev median
|
||||
# ============ === ======= ======= ======= ======= ======= ======= =======
|
||||
# Count 33 2
|
||||
# Exec time 33 24us 12us 12us 12us 12us 0 12us
|
||||
# Lock time 0 0 0 0 0 0 0 0
|
||||
# Rows sent 0 0 0 0 0 0 0 0
|
||||
# Rows examine 0 0 0 0 0 0 0 0
|
||||
# Query size 33 34 17 17 17 17 0 17
|
||||
# String:
|
||||
# Databases db1 (1/50%), db2 (1/50%)
|
||||
# Hosts
|
||||
# Users [SQL_SLAVE]
|
||||
# Query_time distribution
|
||||
# 1us
|
||||
# 10us ################################################################
|
||||
# 100us
|
||||
# 1ms
|
||||
# 10ms
|
||||
# 100ms
|
||||
# 1s
|
||||
# 10s+
|
||||
# Tables
|
||||
# SHOW TABLE STATUS FROM `db2` LIKE 'bar'\G
|
||||
# SHOW CREATE TABLE `db2`.`bar`\G
|
||||
# EXPLAIN /*!50100 PARTITIONS*/
|
||||
SELECT * FROM bar\G
|
@@ -53,7 +53,7 @@ ok(
|
||||
);
|
||||
|
||||
|
||||
# This test will fail come July 2016.
|
||||
# This test will eventually fail due to dates
|
||||
ok(
|
||||
no_diff(
|
||||
sub { pt_query_digest::main(@args,
|
||||
@@ -94,7 +94,7 @@ ok(
|
||||
sub { pt_query_digest::main(@args,
|
||||
"$sample_in/slow033.txt", qw(--until 1d),
|
||||
)},
|
||||
"t/pt-query-digest/samples/slow033-since-Nd.txt",
|
||||
"t/pt-query-digest/samples/slow033-untl-1d.txt",
|
||||
stderr => 1,
|
||||
),
|
||||
'--until 1d'
|
||||
@@ -127,7 +127,7 @@ SKIP: {
|
||||
"$sample_in/slow033.txt",
|
||||
"--since", "\'2009-07-08\' - INTERVAL 7 DAY",
|
||||
)},
|
||||
"t/pt-query-digest/samples/slow033-since-Nd.txt",
|
||||
"t/pt-query-digest/samples/slow033-since-2009-07-08.txt",
|
||||
stderr => 1,
|
||||
),
|
||||
'--since "\'2009-07-08\' - INTERVAL 7 DAY"',
|
||||
|
Reference in New Issue
Block a user