-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05/05/2011 04:52 AM, Guillaume BIENKOWSKI wrote:
> Also, I didn't dive in the code, but is there a reason to filter these?
> I guess it is to *not* trigger the callback multiple times (if you do
> multiple calls to step()).

Profile is telling you how long it took for a statement to execute.  If you
don't execute to completion (ie SQLITE_DONE) then what should it do?  If you
abort a statement early then it has no idea how much of the statement you
have executed.

If you don't want to execute statements to completion then you can implement
your own profiling.  Record the time before you call sqlite3_step for the
first time for a statement and then record the time when you are done.

Roger
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAk3Csn0ACgkQmOOfHg372QROPwCgsOutHEDMNaoRKq4MTxGJCUiK
4O0AoL626dPV1xWyA3MjoFok7CxvSNuY
=Oxhj
-----END PGP SIGNATURE-----
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to