Home
last modified time | relevance | path

Searched refs:trace (Results 1 – 25 of 32) sorted by relevance

12

/sqlite-3.40.0/test/
H A Dtrace.test20 ifcapable !trace {
26 do_test trace-1.1 {
33 do_test trace-1.2 {
35 db trace
37 do_test trace-1.3 {
44 do_test trace-1.4 {
47 do_test trace-1.5 {
48 db trace {}
49 db trace
66 db trace {}
[all …]
H A Dtrace2.test26 ifcapable !trace { finish_test ; return }
30 proc trace {zSql} { lappend ::trace $zSql }
33 db trace trace
36 # Test that the list of string passed to the trace callback when $sql
39 set ::trace [list]
41 uplevel do_test $tn [list {set ::trace}] [list [list {*}$expected]]
48 # Now execute each SQL statement passed to the trace callback in the
51 # of the trace callback is equivalent to the SQL script in $sql.
53 set sqllist $::trace
54 set ::trace [list]
[all …]
H A Dshell4.test15 # 2015-03-19: Added tests for .trace
20 # shell4-2.*: Basic tests for ".trace"
111 ifcapable trace {
113 catchcmd ":memory:" "CREATE TABLE t1(x);\n.trace --unknown"
114 } {1 {Unknown option "--unknown" on ".trace"}}
116 catchcmd ":memory:" "CREATE TABLE t1(x);\n.trace off\n.trace off\n"
119 catchcmd ":memory:" ".trace stdout\n.dump\n.trace off\n"
122 catchcmd ":memory:" ".trace stdout\nCREATE TABLE t1(x);SELECT * FROM t1;"
126 catchcmd ":memory:" "CREATE TABLE t1(x);\n.trace stdout\nSELECT * FROM t1;"
H A Dvtab7.test39 # the echo table). By setting up a tcl trace on the ::echo_module variable,
44 trace add variable ::echo_module write echo_module_trace
63 # The following tests, vtab7-1.*, test that the trace callback on
204 trace remove variable ::echo_module write echo_module_trace
H A Dspellfix.test253 ifcapable trace {
256 lappend ::trace [string range $sql 3 end]
261 set ::trace [list]
264 concat [set vals] [set ::trace]
268 db trace trace_callback
H A Dtrace3.test18 ifcapable !trace { finish_test ; return }
23 error "trace error"; # this will be ignored.
59 } {1 {bad trace type "bad": must be statement, profile, row, or close}}
H A Dfkey1.test177 ifcapable trace {
184 db trace sqltrace
H A Dspeed4.test34 #db trace tracesql
H A Dspeed1.test32 #db trace tracesql
H A Dspeed4p.explain34 #db trace tracesql
H A Dspeed4p.test34 #db trace tracesql
H A Dspeed2.test28 #db trace tracesql
H A Dspeed1p.explain30 #db trace tracesql
H A Dmisc2.test427 # trace the NEW.X back to an original table and thus figure out its
H A DcorruptC.test340 # You can uncomment the following to have it trace
H A Dtclsqlite.test45 …rekey, restore, rollback_hook, serialize, status, timeout, total_changes, trace, trace_v2, transac…
H A Dpermutations.test668 trace.test trigger1.test trigger2.test trigger3.test
/sqlite-3.40.0/src/
H A Dmutex_w32.c43 volatile LONG trace; /* True to trace changes */ member
223 p->trace = 1; in winMutexAlloc()
244 InterlockedCompareExchange(&p->trace, 1, 0); in winMutexAlloc()
300 if( p->trace ){ in winMutexEnter()
302 tid, p->id, p, p->trace, p->nRef)); in winMutexEnter()
343 if( p->trace ){ in winMutexTry()
345 tid, p->id, p, p->trace, p->owner, p->nRef, sqlite3ErrName(rc))); in winMutexTry()
372 if( p->trace ){ in winMutexLeave()
374 tid, p->id, p, p->trace, p->nRef)); in winMutexLeave()
H A Dmutex_unix.c49 int trace; /* True to trace changes */ member
288 if( p->trace ){ in pthreadMutexEnter()
289 printf("enter mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef); in pthreadMutexEnter()
337 if( rc==SQLITE_OK && p->trace ){ in pthreadMutexTry()
338 printf("enter mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef); in pthreadMutexTry()
367 if( p->trace ){ in pthreadMutexLeave()
368 printf("leave mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef); in pthreadMutexLeave()
H A Dsqlite3ext.h143 void * (*trace)(sqlite3*,void(*xTrace)(void*,const char*),void*); member
493 #define sqlite3_trace sqlite3_api->trace
H A Dmain.c1213 db->trace.xV2(SQLITE_TRACE_CLOSE, db->pTraceArg, db, 0); in sqlite3Close()
2149 db->trace.xLegacy = xTrace; in sqlite3_trace()
2173 db->trace.xV2 = xTrace; in sqlite3_trace_v2()
H A Dvdbe.c1615 db->trace.xV2(SQLITE_TRACE_ROW, db->pTraceArg, p, 0); in sqlite3VdbeExec()
8583 db->trace.xLegacy(db->pTraceArg, z); in sqlite3VdbeExec()
8589 (void)db->trace.xV2(SQLITE_TRACE_STMT, db->pTraceArg, p, z); in sqlite3VdbeExec()
8592 (void)db->trace.xV2(SQLITE_TRACE_STMT, db->pTraceArg, p, zTrace); in sqlite3VdbeExec()
H A Dshell.c.in1129 u8 autoEQPtrace; /* autoEQP is in trace mode */
1134 u8 eTraceType; /* SHELL_TRACE_* value for type of trace */
3959 /* Reprepare pStmt before reactiving trace modes */
4582 ".trace ?OPTIONS? Output each SQL statement as it is run",
5404 unsigned mType, /* The trace type */
8103 }else if( cli_strcmp(azArg[1],"trace")==0 ){
8114 raw_printf(stderr, "Usage: .eqp off|on|trace|trigger|full\n");
10622 if( c=='t' && cli_strncmp(azArg[0], "trace", n)==0 ){
10653 raw_printf(stderr, "Unknown option \"%s\" on \".trace\"\n", z);
11334 " -memtrace trace all memory allocations and deallocations\n"
[all …]
H A Dvdbeapi.c76 db->trace.xV2(SQLITE_TRACE_PROFILE, db->pTraceArg, p, (void*)&iElapse); in invokeProfileCallback()
/sqlite-3.40.0/ext/wasm/api/
H A Dsqlite3-wasm.c653 DefGroup(trace) { in sqlite3_wasm_enum_json()

12