1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

New CLI command: ".stats vmstep" enables the display of the virtual-machine

step count only, after each command.  Useful for optimization problems.

FossilOrigin-Name: 49dfce469e6a17111b349e53578479daf783064200bf0eec5bf8a91d3553b19f
This commit is contained in:
drh
2021-01-09 19:10:04 +00:00
parent 4ee492f176
commit a6e6cf2c8f
5 changed files with 43 additions and 18 deletions

View File

@ -642,7 +642,7 @@ do_test shell1-3.23.2 {
# .stats ON|OFF Turn stats on or off
#do_test shell1-3.23b.1 {
# catchcmd "test.db" ".stats"
#} {1 {Usage: .stats on|off}}
#} {1 {Usage: .stats on|off|stmt|vmstep}}
do_test shell1-3.23b.2 {
catchcmd "test.db" ".stats ON"
} {0 {}}
@ -652,7 +652,7 @@ do_test shell1-3.23b.3 {
do_test shell1-3.23b.4 {
# too many arguments
catchcmd "test.db" ".stats OFF BAD"
} {1 {Usage: .stats ?on|off?}}
} {1 {Usage: .stats ?on|off|stmt|vmstep?}}
# Ticket 7be932dfa60a8a6b3b26bcf7623ec46e0a403ddb 2018-06-07
# Adverse interaction between .stats and .eqp

View File

@ -66,7 +66,7 @@ do_test shell4-1.3.3 {
do_test shell4-1.3.4 {
# too many arguments
catchcmd "test.db" ".stats OFF BAD"
} {1 {Usage: .stats ?on|off?}}
} {1 {Usage: .stats ?on|off|stmt|vmstep?}}
# NB. whitespace is important
do_test shell4-1.4.1 {