diff options
author | dan <Dan Kennedy> | 2022-12-03 18:16:25 +0000 |
---|---|---|
committer | dan <Dan Kennedy> | 2022-12-03 18:16:25 +0000 |
commit | f6f01f15dd9ff495ac59f5abc3bbe15f4d8e88c8 (patch) | |
tree | a86050a52d627e409f41dc8e0dd75623a9830b67 /src/vdbeInt.h | |
parent | 231ff4b027b077ce9ac0c829cd9cee4108ca9b7a (diff) | |
download | sqlite-f6f01f15dd9ff495ac59f5abc3bbe15f4d8e88c8.tar.gz sqlite-f6f01f15dd9ff495ac59f5abc3bbe15f4d8e88c8.zip |
Add CYCLES scanstat measurement to "USE TEMP B-TREE FOR ORDER BY" lines.
FossilOrigin-Name: 365011ae8b7e3fcaa2c4ea9601231a3ef2223e60d7a53ec33013109dca22ad58
Diffstat (limited to 'src/vdbeInt.h')
-rw-r--r-- | src/vdbeInt.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/vdbeInt.h b/src/vdbeInt.h index b8642da50..df47e0544 100644 --- a/src/vdbeInt.h +++ b/src/vdbeInt.h @@ -388,11 +388,19 @@ typedef unsigned bft; /* Bit Field Type */ /* The ScanStatus object holds a single value for the ** sqlite3_stmt_scanstatus() interface. +** +** aAddrRange[]: +** This array is used by ScanStatus elements associated with EQP +** notes that make an SQLITE_SCANSTAT_NCYCLE value available. It is +** an array of up to 3 ranges of VM addresses for which the Vdbe.anCycle[] +** values should be summed to calculate the NCYCLE value. Each pair of +** integer addresses is a start and end address (both inclusive) for a range +** instructions. A start value of 0 indicates an empty range. */ typedef struct ScanStatus ScanStatus; struct ScanStatus { int addrExplain; /* OP_Explain for loop */ - int addrEndRange; /* End of range (inclusive) of times to sum */ + int aAddrRange[6]; int addrLoop; /* Address of "loops" counter */ int addrVisit; /* Address of "rows visited" counter */ int iSelectID; /* The "Select-ID" for this loop */ |