mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-10 21:19:59 +00:00
Update modules in pt-query-digest to fix bug 821692 and bug 984053. Replace HTTPMicro with HTTP::Micro.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
24
t/lib/samples/slowlogs/slow058.txt
Normal file
24
t/lib/samples/slowlogs/slow058.txt
Normal file
@@ -0,0 +1,24 @@
|
||||
# User@Host: meow[meow] @ [1.2.3.8]
|
||||
# Thread_id: 5 Schema: db
|
||||
# Query_time: 0.000002 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0
|
||||
LOAD DATA LOCAL INFILE '/tmp/foo.txt' INTO TABLE `foo`;
|
||||
# User@Host: meow[meow] @ [1.2.3.8]
|
||||
# Thread_id: 7 Schema: db
|
||||
# Query_time: 0.018799 Lock_time: 0.009453 Rows_sent: 0 Rows_examined: 0
|
||||
INSERT `foo` VALUES("bar");
|
||||
# User@Host: meow[meow] @ [1.2.3.8]
|
||||
# Thread_id: 7 Schema: db
|
||||
# Query_time: 0.018799 Lock_time: 0.009453 Rows_sent: 0 Rows_examined: 0
|
||||
REPLACE `foo` VALUES("bar");
|
||||
# User@Host: meow[meow] @ [1.2.3.8]
|
||||
# Thread_id: 5 Schema: db
|
||||
# Query_time: 0.000002 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0
|
||||
load data local infile '/tmp/foo.txt' into table `foo`;
|
||||
# User@Host: meow[meow] @ [1.2.3.8]
|
||||
# Thread_id: 7 Schema: db
|
||||
# Query_time: 0.018799 Lock_time: 0.009453 Rows_sent: 0 Rows_examined: 0
|
||||
insert `foo` values("bar");
|
||||
# User@Host: meow[meow] @ [1.2.3.8]
|
||||
# Thread_id: 7 Schema: db
|
||||
# Query_time: 0.018799 Lock_time: 0.009453 Rows_sent: 0 Rows_examined: 0
|
||||
replace `foo` values("bar");
|
94
t/pt-query-digest/samples/slow058.txt
Normal file
94
t/pt-query-digest/samples/slow058.txt
Normal file
@@ -0,0 +1,94 @@
|
||||
|
||||
# Query 1: 0 QPS, 0x concurrency, ID 0x471A0C4BD7A4EE34 at byte 730 ______
|
||||
# This item is included in the report because it matches --limit.
|
||||
# Scores: V/M = 0.00
|
||||
# Attribute pct total min max avg 95% stddev median
|
||||
# ============ === ======= ======= ======= ======= ======= ======= =======
|
||||
# Count 33 2
|
||||
# Exec time 49 38ms 19ms 19ms 19ms 19ms 0 19ms
|
||||
# Lock time 50 19ms 9ms 9ms 9ms 9ms 0 9ms
|
||||
# Rows sent 0 0 0 0 0 0 0 0
|
||||
# Rows examine 0 0 0 0 0 0 0 0
|
||||
# Query size 24 52 26 26 26 26 0 26
|
||||
# String:
|
||||
# Databases db
|
||||
# Hosts
|
||||
# Users meow
|
||||
# Query_time distribution
|
||||
# 1us
|
||||
# 10us
|
||||
# 100us
|
||||
# 1ms
|
||||
# 10ms ################################################################
|
||||
# 100ms
|
||||
# 1s
|
||||
# 10s+
|
||||
# Tables
|
||||
# SHOW TABLE STATUS FROM `db` LIKE 'foo'\G
|
||||
# SHOW CREATE TABLE `db`.`foo`\G
|
||||
insert `foo` values("bar")\G
|
||||
|
||||
# Query 2: 0 QPS, 0x concurrency, ID 0xF33473286088142B at byte 898 ______
|
||||
# This item is included in the report because it matches --limit.
|
||||
# Scores: V/M = 0.00
|
||||
# Attribute pct total min max avg 95% stddev median
|
||||
# ============ === ======= ======= ======= ======= ======= ======= =======
|
||||
# Count 33 2
|
||||
# Exec time 49 38ms 19ms 19ms 19ms 19ms 0 19ms
|
||||
# Lock time 50 19ms 9ms 9ms 9ms 9ms 0 9ms
|
||||
# Rows sent 0 0 0 0 0 0 0 0
|
||||
# Rows examine 0 0 0 0 0 0 0 0
|
||||
# Query size 25 54 27 27 27 27 0 27
|
||||
# String:
|
||||
# Databases db
|
||||
# Hosts
|
||||
# Users meow
|
||||
# Query_time distribution
|
||||
# 1us
|
||||
# 10us
|
||||
# 100us
|
||||
# 1ms
|
||||
# 10ms ################################################################
|
||||
# 100ms
|
||||
# 1s
|
||||
# 10s+
|
||||
# Tables
|
||||
# SHOW TABLE STATUS FROM `db` LIKE 'foo'\G
|
||||
# SHOW CREATE TABLE `db`.`foo`\G
|
||||
replace `foo` values("bar")\G
|
||||
|
||||
# Query 3: 0 QPS, 0x concurrency, ID 0xEBAC9C76529E62CE at byte 534 ______
|
||||
# This item is included in the report because it matches --limit.
|
||||
# Scores: V/M = 0.00
|
||||
# Attribute pct total min max avg 95% stddev median
|
||||
# ============ === ======= ======= ======= ======= ======= ======= =======
|
||||
# Count 33 2
|
||||
# Exec time 0 4us 2us 2us 2us 2us 0 2us
|
||||
# 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 50 108 54 54 54 54 0 54
|
||||
# String:
|
||||
# Databases db
|
||||
# Hosts
|
||||
# Users meow
|
||||
# Query_time distribution
|
||||
# 1us ################################################################
|
||||
# 10us
|
||||
# 100us
|
||||
# 1ms
|
||||
# 10ms
|
||||
# 100ms
|
||||
# 1s
|
||||
# 10s+
|
||||
# Tables
|
||||
# SHOW TABLE STATUS FROM `db` LIKE 'table'\G
|
||||
# SHOW CREATE TABLE `db`.`table`\G
|
||||
load data local infile '/tmp/foo.txt' into table `foo`\G
|
||||
|
||||
# Profile
|
||||
# Rank Query ID Response time Calls R/Call V/M Item
|
||||
# ==== ================== ============= ===== ====== ===== =============
|
||||
# 1 0x471A0C4BD7A4EE34 0.0376 50.0% 2 0.0188 0.00 INSERT foo
|
||||
# 2 0xF33473286088142B 0.0376 50.0% 2 0.0188 0.00 REPLACE foo
|
||||
# 3 0xEBAC9C76529E62CE 0.0000 0.0% 2 0.0000 0.00 LOAD DATA foo
|
@@ -343,7 +343,7 @@ ok(
|
||||
"t/pt-query-digest/samples/slow051.txt",
|
||||
),
|
||||
'Analysis for slow051 (issue 918)',
|
||||
);
|
||||
) or diag($test_diff);
|
||||
|
||||
# #############################################################################
|
||||
# Issue 1124: Make mk-query-digest profile include variance-to-mean ratio
|
||||
|
Reference in New Issue
Block a user