forked from pingcap/tidb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
log: Show disk usage of a query in slow query and statement summary p…
- Loading branch information
Showing
7 changed files
with
41 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -170,7 +170,10 @@ func (*testSessionSuite) TestSlowLogFormat(c *C) { | |
copTasks.TotBackoffTimes[backoff] = 200 | ||
} | ||
|
||
var memMax int64 = 2333 | ||
var ( | ||
memMax int64 = 2333 | ||
diskMax int64 = 2333 | ||
) | ||
resultString := `# Txn_start_ts: 406649736972468225 | ||
# User: [email protected] | ||
# Conn_ID: 1 | ||
|
@@ -190,6 +193,7 @@ func (*testSessionSuite) TestSlowLogFormat(c *C) { | |
# Cop_backoff_rpcPD_total_times: 200 Cop_backoff_rpcPD_total_time: 0.2 Cop_backoff_rpcPD_max_time: 0.2 Cop_backoff_rpcPD_max_addr: 127.0.0.1 Cop_backoff_rpcPD_avg_time: 0.2 Cop_backoff_rpcPD_p90_time: 0.2 | ||
# Cop_backoff_rpcTiKV_total_times: 200 Cop_backoff_rpcTiKV_total_time: 0.2 Cop_backoff_rpcTiKV_max_time: 0.2 Cop_backoff_rpcTiKV_max_addr: 127.0.0.1 Cop_backoff_rpcTiKV_avg_time: 0.2 Cop_backoff_rpcTiKV_p90_time: 0.2 | ||
# Mem_max: 2333 | ||
# Disk_max: 2333 | ||
# Prepared: true | ||
# Has_more_results: true | ||
# Succ: true | ||
|
@@ -208,6 +212,7 @@ select * from t;` | |
CopTasks: copTasks, | ||
ExecDetail: execDetail, | ||
MemMax: memMax, | ||
DiskMax: diskMax, | ||
Prepared: true, | ||
HasMoreResults: true, | ||
Succ: true, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters