1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

When VDBE_PROFILE is enabled, ignore negative opcode times, which sometimes

occur, perhaps due to context swaps.

FossilOrigin-Name: 4e88042f9d3e678914da96c0eb276f3d8fca5a94
This commit is contained in:
drh
2014-04-25 12:35:31 +00:00
parent f0582f43dd
commit a01c7c70fd
3 changed files with 9 additions and 9 deletions

View File

@@ -6323,8 +6323,8 @@ default: { /* This is really OP_Noop and OP_Explain */
#ifdef VDBE_PROFILE
{
u64 elapsed = sqlite3Hwtime() - start;
pOp->cycles += elapsed;
u64 endTime = sqlite3Hwtime();
if( endTime>start ) pOp->cycles += endTime - start;
pOp->cnt++;
}
#endif